Created
August 7, 2019 08:07
-
-
Save TenzenIga/fbafa704eefc0c2eeafb5af40df2a9b3 to your computer and use it in GitHub Desktop.
Check ie
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
export function isIE() { | |
var ua = window.navigator.userAgent; //Check the userAgent property of the window.navigator object | |
var msie = ua.indexOf('MSIE '); // IE 10 or older | |
var trident = ua.indexOf('Trident/'); //IE 11 | |
return (msie > 0 || trident > 0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment