Created
July 2, 2018 15:46
-
-
Save zearadoua/887617f8ee38e16ca0271ccb3a6a168a to your computer and use it in GitHub Desktop.
detect 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
(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