update watchman device types (#6900)

This commit is contained in:
jessopb 2021-08-18 11:05:03 -04:00 committed by GitHub
parent 7f35f87893
commit 5d889bef27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -87,10 +87,13 @@ if (window.localStorage.getItem(SHARE_INTERNAL) === 'true') internalAnalyticsEna
* @returns {String}
*/
function getDeviceType() {
var userAgent = navigator.userAgent || navigator.vendor || window.opera;
if (!IS_WEB) {
return 'elt';
}
const userAgent = navigator.userAgent || navigator.vendor || window.opera;
if (/android/i.test(userAgent)) {
return 'and';
return 'adr';
}
// iOS detection from: http://stackoverflow.com/a/9039885/177710