Skip to content

Instantly share code, notes, and snippets.

@gEndelf
Created October 10, 2016 13:03
Show Gist options
  • Save gEndelf/5430fa29a22dab346c00d987c2294315 to your computer and use it in GitHub Desktop.
Save gEndelf/5430fa29a22dab346c00d987c2294315 to your computer and use it in GitHub Desktop.
function isMobile() {
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment