Skip to content

Instantly share code, notes, and snippets.

@saqibsarwar
Created February 25, 2015 15:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saqibsarwar/9f8c2bfe81e99d7776f8 to your computer and use it in GitHub Desktop.
Save saqibsarwar/9f8c2bfe81e99d7776f8 to your computer and use it in GitHub Desktop.
Target only safari browser
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