aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2021-04-17 00:17:53 +1000
committerSam Potts <sam@potts.es>2021-04-17 00:17:53 +1000
commit3316e40e7b12021b45c3291ea460048d3fc33707 (patch)
treeec8e34efa87241e285c1266075493e7e8e9c5466
parentdfe59853261666a872366c605ffa000070b2ae5a (diff)
downloadplyr-3316e40e7b12021b45c3291ea460048d3fc33707.tar.lz
plyr-3316e40e7b12021b45c3291ea460048d3fc33707.tar.xz
plyr-3316e40e7b12021b45c3291ea460048d3fc33707.zip
fix: issue with IE detection
-rw-r--r--src/js/utils/browser.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/utils/browser.js b/src/js/utils/browser.js
index 7b8fa5e2..f8dd36a1 100644
--- a/src/js/utils/browser.js
+++ b/src/js/utils/browser.js
@@ -4,7 +4,7 @@
// ==========================================================================
const browser = {
- isIE: /* @cc_on!@ */ false || !!document.documentMode,
+ isIE: Boolean(window.document.documentMode),
isEdge: window.navigator.userAgent.includes('Edge'),
isWebkit: 'WebkitAppearance' in document.documentElement.style && !/Edge/.test(navigator.userAgent),
isIPhone: /(iPhone|iPod)/gi.test(navigator.platform),