Created
May 15, 2014 20:38
-
-
Save weblancaster/1fef29a957677c1bca57 to your computer and use it in GitHub Desktop.
Javascript Mobile device detection
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
if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) { | |
// some code.. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment