Skip to content

Instantly share code, notes, and snippets.

@charliecm
Created October 7, 2013 16:54
Show Gist options
  • Save charliecm/6871202 to your computer and use it in GitHub Desktop.
Save charliecm/6871202 to your computer and use it in GitHub Desktop.
Detection code for IE10+.
// Apply IE10+ detection
if ((/*@cc_on!@*/false && document.documentMode === 10) || navigator.userAgent.match(/Trident\/7.0/)) {
document.documentElement.className += ' ie10';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment