Skip to content

Instantly share code, notes, and snippets.

@svebal
Created April 7, 2014 17:58
Show Gist options
  • Save svebal/10025547 to your computer and use it in GitHub Desktop.
Save svebal/10025547 to your computer and use it in GitHub Desktop.
if (navigator && navigator.platform && navigator.platform.match(/^(iPad|iPod|iPhone)$/)) {
//do something magic
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment