Created
January 29, 2020 15:45
-
-
Save johanbove/3fdb3cc3db8b4797d37993bd147a0364 to your computer and use it in GitHub Desktop.
IE11 feature detection
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
// @see https://stackoverflow.com/questions/17907445/how-to-detect-ie11 | |
if (!('MSInputMethodContext' in window)) { | |
console.log('This is not IE11'); | |
} else { | |
console.log('This is IE11!'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment