Skip to content

Instantly share code, notes, and snippets.

@Himura2la
Last active July 13, 2021 16:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Himura2la/5e1ea9b0f6fe596bf4024cb7f06d5460 to your computer and use it in GitHub Desktop.
Save Himura2la/5e1ea9b0f6fe596bf4024cb7f06d5460 to your computer and use it in GitHub Desktop.
Detect Internet Explorer with the code that Internet Explorer does not understand xD
['MSIE', 'Trident'].reduce((p, c) => p || (navigator.userAgent.indexOf(c) >= 0), false)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment