element-plus/packages/utils-v2/browser.ts

5 lines
139 B
TypeScript
Raw Normal View History

import { isClient } from '@vueuse/core'
export const isFirefox = (): boolean =>
isClient && /firefox/i.test(window.navigator.userAgent)