Last active
June 16, 2017 01:43
-
-
Save stowball/8225fff753e825791da8f62edfe098a5 to your computer and use it in GitHub Desktop.
Feature detect if the browser is any version of IE (excluding Edge)
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
const isIE = () => { | |
const style = document.documentElement.style; | |
return (('msScrollLimit' in style || 'behavior' in style) && !('webkitFlex' in style)); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment