Created
February 25, 2015 15:20
-
-
Save saqibsarwar/9f8c2bfe81e99d7776f8 to your computer and use it in GitHub Desktop.
Target only safari browser
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 ){ | |
// Yep, it's Safari =) | |
$('body').addClass('safari'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment