Advertisement
arie_cristianD

add safari class if user using safari browser

Sep 26th, 2023
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if (navigator.userAgent.indexOf('Safari') != -1 &&
  2.     navigator.userAgent.indexOf('Chrome') == -1) {
  3.         document.body.className += " safari";
  4. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement