Skip to content

Instantly share code, notes, and snippets.

@BuddyLReno
Created September 14, 2016 02:25
Show Gist options
  • Save BuddyLReno/72b986b619ad40dd6ccc008a0f11eb42 to your computer and use it in GitHub Desktop.
Save BuddyLReno/72b986b619ad40dd6ccc008a0f11eb42 to your computer and use it in GitHub Desktop.
Detect IE with a short if check.
if(/*@cc_on!@*/false || !!document.documentMode) {
document.querySelector('html').className += " is-IE";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment