Skip to content

Commit cdfd16c

Browse files
authored
fix: environment detection based on userAgent (#6226)
1 parent a610b44 commit cdfd16c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/constants/env.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const IS_BROWSER = HAS_WINDOW_SUPPORT && HAS_DOCUMENT_SUPPORT && HAS_NAVI
1313
export const WINDOW = HAS_WINDOW_SUPPORT ? window : {}
1414
export const DOCUMENT = HAS_DOCUMENT_SUPPORT ? document : {}
1515
export const NAVIGATOR = HAS_NAVIGATOR_SUPPORT ? navigator : {}
16-
export const USER_AGENT = (NAVIGATOR.USER_AGENT || '').toLowerCase()
16+
export const USER_AGENT = (NAVIGATOR.userAgent || '').toLowerCase()
1717

1818
export const IS_JSDOM = USER_AGENT.indexOf('jsdom') > 0
1919
export const IS_IE = /msie|trident/.test(USER_AGENT)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy