We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
userAgent
1 parent a610b44 commit a887522Copy full SHA for a887522
src/constants/env.js
@@ -13,7 +13,7 @@ export const IS_BROWSER = HAS_WINDOW_SUPPORT && HAS_DOCUMENT_SUPPORT && HAS_NAVI
13
export const WINDOW = HAS_WINDOW_SUPPORT ? window : {}
14
export const DOCUMENT = HAS_DOCUMENT_SUPPORT ? document : {}
15
export const NAVIGATOR = HAS_NAVIGATOR_SUPPORT ? navigator : {}
16
-export const USER_AGENT = (NAVIGATOR.USER_AGENT || '').toLowerCase()
+export const USER_AGENT = (NAVIGATOR.userAgent || '').toLowerCase()
17
18
export const IS_JSDOM = USER_AGENT.indexOf('jsdom') > 0
19
export const IS_IE = /msie|trident/.test(USER_AGENT)
0 commit comments