Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mobile Detection #20

Closed
vhmth opened this issue Mar 28, 2016 · 1 comment
Closed

Mobile Detection #20

vhmth opened this issue Mar 28, 2016 · 1 comment

Comments

@vhmth
Copy link

vhmth commented Mar 28, 2016

Right now the isMobileDevice script is a bit naive, but it gets the job done for 99% of devices. I propose we upgrade to:

var isMobileDevice = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Mobile|mobile/i.test(navigator.userAgent)

(source: http://stackoverflow.com/a/25394023/696130)

or something more sophisticated taken from isMobile.js.

@vhmth
Copy link
Author

vhmth commented Mar 29, 2016

💯 Thank you for the quick response @muaz-khan! I really appreciate all the work you do man. I tweeted at you a while back extending the same gratitude, but I don't think you check your Twitter often. :-P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant