userAgent.ts 187 B

1234
  1. export const browserIsChrome = () =>
  2. /Chrome/i.test(navigator.userAgent) && /Google/i.test(navigator.vendor)
  3. export const browserIsFirefox = () => /Firefox/i.test(navigator.userAgent)