Skip to content

Instantly share code, notes, and snippets.

@AbeEstrada
Created August 12, 2014 20:32
Show Gist options
  • Save AbeEstrada/ae6ea68a914874a13bc2 to your computer and use it in GitHub Desktop.
Save AbeEstrada/ae6ea68a914874a13bc2 to your computer and use it in GitHub Desktop.
function isMobile() {
return navigator.userAgent.toLowerCase().indexOf("mobile") >= 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment