Created
September 27, 2018 13:29
-
-
Save alegut/5675a50070c06d865567d023c4bef6e5 to your computer and use it in GitHub Desktop.
Detect Safari browser
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 isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent); | |
| if (isSafari) { | |
| alert("Browser is Safari"); | |
| } else { | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment