Last active
August 5, 2016 23:19
-
-
Save whilei/924c6f3980752c3206b1bd336baddfcc to your computer and use it in GitHub Desktop.
check if device mobile
This file contains 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
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|BB|PlayBook|IEMobile|Windows Phone|Kindle|Silk|Opera Mini/i.test(navigator.userAgent)) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment