Created
February 16, 2015 08:20
-
-
Save YamilG/18cadad2cbe063e57067 to your computer and use it in GitHub Desktop.
Detect if Android in JS
This file contains hidden or 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 ua = navigator.userAgent.toLowerCase(); | |
var isAndroid = ua.indexOf("android") > -1; | |
if(isAndroid) { | |
// do you android thing | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment