Last active
December 18, 2015 03:39
-
-
Save sairion/5719500 to your computer and use it in GitHub Desktop.
Detect mobile by UA String
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
// | |
//from http://stackoverflow.com/questions/3514784/what-is-the-best-way-to-detect-a-handheld-device-in-jquery | |
(/iPhone|iPod|iPad|Android|BlackBerry/).test(navigator.userAgent); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment