Skip to content

Commit

Permalink
fix: environment detection based on userAgent (#6226)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobmllr95 committed Dec 18, 2020
1 parent a610b44 commit cdfd16c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/constants/env.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const IS_BROWSER = HAS_WINDOW_SUPPORT && HAS_DOCUMENT_SUPPORT && HAS_NAVI
export const WINDOW = HAS_WINDOW_SUPPORT ? window : {}
export const DOCUMENT = HAS_DOCUMENT_SUPPORT ? document : {}
export const NAVIGATOR = HAS_NAVIGATOR_SUPPORT ? navigator : {}
export const USER_AGENT = (NAVIGATOR.USER_AGENT || '').toLowerCase()
export const USER_AGENT = (NAVIGATOR.userAgent || '').toLowerCase()

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

0 comments on commit cdfd16c

Please sign in to comment.