Skip to content

Instantly share code, notes, and snippets.

@jnicol
Created January 24, 2018 23:54
Embed
What would you like to do?
var isIE = /*@cc_on!@*/false || !!document.documentMode, // Internet Explorer 6-11
isEdge = !isIE && !!window.StyleMedia; // Edge 20+
if(isIE || isEdge) {
// do something...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment