Created
July 22, 2016 09:42
-
-
Save floscr/6240d2347abe0d2e2b18c057d8419a67 to your computer and use it in GitHub Desktop.
Detect Mobile
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|iPhone|iPad|iPod|BlackBerry|Windows Phone/i).test(navigator.userAgent || navigator.vendor || window.opera)) { | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment