Created
March 15, 2017 16:33
-
-
Save Farmatique/8510e0a1cc5ae178de4f62883bb64c03 to your computer and use it in GitHub Desktop.
mobile safari detector
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
| var ua = navigator.userAgent; | |
| if(ua.match(/(iPod|iPhone|iPad)/) !== null && ua.match(/AppleWebKit/) !== null && ua.search('CriOS') < 0){ | |
| console.log('this is mobile safari'); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment