Skip to content

Instantly share code, notes, and snippets.

@YamilG
Created February 16, 2015 08:20
Show Gist options
  • Save YamilG/18cadad2cbe063e57067 to your computer and use it in GitHub Desktop.
Save YamilG/18cadad2cbe063e57067 to your computer and use it in GitHub Desktop.
Detect if Android in JS
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