Skip to content

Instantly share code, notes, and snippets.

@rafaelmaeuer
Created December 13, 2016 09:20
Show Gist options
  • Save rafaelmaeuer/663c74a06b6dd4d9a04b2bf813edcc10 to your computer and use it in GitHub Desktop.
Save rafaelmaeuer/663c74a06b6dd4d9a04b2bf813edcc10 to your computer and use it in GitHub Desktop.
function is_iPhone_or_iPod(){
return navigator.platform.match(/i(Phone|Pod))/i)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment