Last active
April 6, 2018 19:21
-
-
Save everdimension/98e1f40e4d5d903ab39e69dc1e3be837 to your computer and use it in GitHub Desktop.
check for ie11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function isBrowserIE() { | |
const ie11Re = /Trident.*rv:11/; | |
const edgeRe = /Edge\//; | |
const ua = navigator.userAgent; | |
return ie11Re.test(ua) || edgeRe.test(ua); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function isBrowserIE11() { | |
return /Trident.*rv:11/.test(navigator.userAgent); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment