Skip to content

Instantly share code, notes, and snippets.

@beiyuu
Created November 18, 2013 03:43
Show Gist options
  • Save beiyuu/7522112 to your computer and use it in GitHub Desktop.
Save beiyuu/7522112 to your computer and use it in GitHub Desktop.
var ua = navigator.userAgent;
if( ua.indexOf("Android") >= 0 ) {
var androidversion = parseFloat(ua.slice(ua.indexOf("Android")+8));
if (androidversion < 2.3) {
// do whatever
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment