Fix error after select

This commit is contained in:
Faisal Salman 2023-09-23 10:22:18 +07:00
parent 1461a255ea
commit 5897adefd7

View File

@ -108,10 +108,8 @@ $(document)
} }
if (qs) { if (qs) {
$('#ua-txt-info').text('For a given user-agent:'); $('#ua-txt-info').text('For a given user-agent:');
UAParser(qs).then(function(result) {
updateDemo(result);
});
$('#ua-txt').get(0).scrollIntoView(); $('#ua-txt').get(0).scrollIntoView();
updateDemo(UAParser(qs));
} else { } else {
UAParser().withClientHints().then(function(result) { UAParser().withClientHints().then(function(result) {
updateDemo(result); updateDemo(result);