Skip to content

Instantly share code, notes, and snippets.

@keeganwatkins
Created September 9, 2010 15:49
Show Gist options
  • Save keeganwatkins/572042 to your computer and use it in GitHub Desktop.
Save keeganwatkins/572042 to your computer and use it in GitHub Desktop.
Simple detection for iPod/iPad/iPhone
var isIDevice = navigator.platform.toLowerCase() in {
"ipod": true,
"ipad": true,
"iphone": true
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment