diff --git a/src/js/utils/browser.js b/src/js/utils/browser.js index 384517fb53..9a993cdadc 100644 --- a/src/js/utils/browser.js +++ b/src/js/utils/browser.js @@ -154,7 +154,7 @@ export const TOUCH_ENABLED = Boolean(Dom.isReal() && ( const UAD = window.navigator && window.navigator.userAgentData; -if (UAD) { +if (UAD && UAD.platform && UAD.brands) { // If userAgentData is present, use it instead of userAgent to avoid warnings // Currently only implemented on Chromium // userAgentData does not expose Android version, so ANDROID_VERSION remains `null`