fix: issue with IE detection

This commit is contained in:
Sam Potts 2021-04-17 00:17:53 +10:00
parent dfe5985326
commit 3316e40e7b

View File

@ -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),