Skip to content
Snippets Groups Projects
Commit ecedaef1 authored by Julien Schmidt's avatar Julien Schmidt
Browse files

fix Edge detection

parent a235b249
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,8 @@ let noMember = false;
function isIncompatibleBrowser() {
let ua = window.navigator.userAgent;
let isIE = /msie\s|trident\/|edge\//i.test(ua) && !!(document.uniqueID || document.documentMode || window.ActiveXObject || window.MSInputMethodContext);
let isIE = /msie\s|trident\/|edge\//i.test(ua) &&
!!(document.uniqueID || document.documentMode || window.ActiveXObject || window.MSInputMethodContext || window.MSSiteModeEvent);
return isIE;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment