Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
check for ie11
function isBrowserIE() {
const ie11Re = /Trident.*rv:11/;
const edgeRe = /Edge\//;
const ua = navigator.userAgent;
return ie11Re.test(ua) || edgeRe.test(ua);
}
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