Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
const isSafari = () => navigator.vendor.match(/apple/i) &&
!navigator.userAgent.match(/crios/i) &&
!navigator.userAgent.match(/fxios/i) &&
!navigator.userAgent.match(/Opera|OPT\//);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment