Skip to content

Instantly share code, notes, and snippets.



Last active Oct 26, 2015
What would you like to do?
Detect Safari and add a class to the <html> element
if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1) {
* Credits:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.