Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Simple regex/user agent mobile checker
- * about 99% accurate when compared to 175k sessions in GA
- */
- function isMobile()
- {
- return window.navigator.match(/Mobi|Touch|Opera\ Mini|Android/)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement