Last active
August 29, 2015 14:13
-
-
Save marjanbonus/26c6ed423c7455392b08 to your computer and use it in GitHub Desktop.
Target Safari only
This file contains 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.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1) { | |
console.log("Safari!"); | |
} | |
if (!!navigator.userAgent.match(/Trident\/7\./)) { | |
console.log("IE!!!"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment