Last active
April 24, 2018 09:30
-
-
Save cedeber/0a5ccc167495ecfed4bc2d867a108f79 to your computer and use it in GitHub Desktop.
Detects IE/Edge < 17
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 IEdgeMatches = /(Edge|Trident)\/(\d.)/i.exec(navigator.userAgent); | |
export default IEdgeMatches && parseInt(IEdgeMatches[2], 10) < 17; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment