Created
December 1, 2020 14:42
-
-
Save zastrow/6258a2ea476e587d40a7a2964dee1ed3 to your computer and use it in GitHub Desktop.
Check if this is IE11
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
const checkIE = () => { | |
const isIE = /* @cc_on!@ */false || !!document.documentMode; | |
if (isIE) { | |
const html = document.getElementsByTagName('html')[0]; | |
html.className += ' ie11'; | |
} | |
}; | |
checkIE(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment