3 ms·
This would sort itself out if browser implementations followed the standard and allowed us to set the user-agent ourselves. Personally I would then set it to 1
by bullen 4y ago
This would sort itself out if browser implementations followed the standard and allowed us to set the user-agent ourselves.
Personally I would then set it to 1, 2 or 3 and have my server handle those cases.
Right now then ONLY user-agent code I have running is this:
navigator.userAgent.indexOf('Android') == -1 && navigator.userAgent.indexOf('Other') == -1 && navigator.userAgent.indexOf('SamsungBrowser') == -1
Good job Samsung/Google!