Created
September 12, 2018 18:13
-
-
Save luislobo14rap/4fe0bdb23e04cd49b5e2fa54cb3b6eb6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// isIE.js v1 | |
function isIE(userAgent) { | |
userAgent == undefined ? userAgent = window.navigator.userAgent : userAgent = userAgent; | |
return !!userAgent.match(/(MSIE |Trident.+rv:11\.)/); | |
}; |
This file contains hidden or 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
// isIE.min.js v1 | |
function isIE(a){return a=void 0==a?window.navigator.userAgent:a,!!a.match(/(MSIE |Trident.+rv:11\.)/)} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment