Skip to content

Instantly share code, notes, and snippets.

@saqibsarwar
Created February 25, 2015 15:20
Embed
What would you like to do?
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