From 5d889bef27570a61e3d9fa19e3afa166b9a7965b Mon Sep 17 00:00:00 2001 From: jessopb <36554050+jessopb@users.noreply.github.com> Date: Wed, 18 Aug 2021 11:05:03 -0400 Subject: [PATCH] update watchman device types (#6900) --- ui/analytics.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ui/analytics.js b/ui/analytics.js index 9dafd0339..ff92f9cf1 100644 --- a/ui/analytics.js +++ b/ui/analytics.js @@ -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