element-plus/packages/utils/browser.ts
btea 105d79b0d9
refactor: extract isClient and isNumber isBoolean (#12504)
* refactor: extract isClient and isNumber isBoolean

* test: update test

* refactor: extract isClient to browser
2023-04-20 20:00:49 +08:00

7 lines
174 B
TypeScript

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