8000 fix: environment detection based on `userAgent` (#6226) · bootstrap-vue/bootstrap-vue@cdfd16c · GitHub
[go: up one dir, main page]

Skip to content
8000

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)
0