Skip to content

Instantly share code, notes, and snippets.

@craigsimps
Created March 21, 2018 22:05
Show Gist options
  • Select an option

  • Save craigsimps/19c4544a84d6c6d6d97c9b79c1dcf701 to your computer and use it in GitHub Desktop.

Select an option

Save craigsimps/19c4544a84d6c6d6d97c9b79c1dcf701 to your computer and use it in GitHub Desktop.
function isIE(userAgent) {
userAgent = userAgent || navigator.userAgent;
return userAgent.indexOf("MSIE ") > -1 || userAgent.indexOf("Trident/") > -1 || userAgent.indexOf("Edge/") > -1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment