Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
detect safari browser
(function($){
"use strict";
if ( /^((?!chrome|android).)*safari/i.test(navigator.userAgent)) {
$("html").addClass("safari-detected");
}
})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment