Forked from sdthornton/Detect Mobile Browser - CoffeeScript
Last active
January 2, 2016 02:49
-
-
Save CyberStrike/8239950 to your computer and use it in GitHub Desktop.
Detect Mobile Browser - CoffeeScript
This file contains hidden or 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
@mobileWeb = /Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune/i.test(navigator.userAgent) | |
// Usage: if @mobileWeb then ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment