Created
September 28, 2016 11:18
-
-
Save Farmatique/59efa508ea41d36e158f872b8e783886 to your computer and use it in GitHub Desktop.
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
if (navigator.userAgent.search("Safari") >= 0 && navigator.userAgent.search("Chrome") < 0) | |
{ | |
alert("Browser is Safari"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment