Skip to content

Commit a887522

Browse files
committed
fix: environment detection based on userAgent
1 parent a610b44 commit a887522

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)