update watchman device types (#6900)
This commit is contained in:
parent
7f35f87893
commit
5d889bef27
1 changed files with 5 additions and 2 deletions
|
@ -87,10 +87,13 @@ if (window.localStorage.getItem(SHARE_INTERNAL) === 'true') internalAnalyticsEna
|
||||||
* @returns {String}
|
* @returns {String}
|
||||||
*/
|
*/
|
||||||
function getDeviceType() {
|
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)) {
|
if (/android/i.test(userAgent)) {
|
||||||
return 'and';
|
return 'adr';
|
||||||
}
|
}
|
||||||
|
|
||||||
// iOS detection from: http://stackoverflow.com/a/9039885/177710
|
// iOS detection from: http://stackoverflow.com/a/9039885/177710
|
||||||
|
|
Loading…
Reference in a new issue