Created
September 14, 2016 02:25
-
-
Save BuddyLReno/72b986b619ad40dd6ccc008a0f11eb42 to your computer and use it in GitHub Desktop.
Detect IE with a short if check.
This file contains 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
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