Created
January 28, 2013 13:22
-
-
Save toddmotto/4655457 to your computer and use it in GitHub Desktop.
iOS detect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var iOS = navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)/i); | |
if (!iOS) { | |
// Run scripts for anything but iOS | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks, it's Awesome :) :)