From 3316e40e7b12021b45c3291ea460048d3fc33707 Mon Sep 17 00:00:00 2001 From: Sam Potts Date: Sat, 17 Apr 2021 00:17:53 +1000 Subject: [PATCH] fix: issue with IE detection --- src/js/utils/browser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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),