This code is used to detect only safari browser
const isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent)