mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-11-30 10:18:02 +08:00
105d79b0d9
* refactor: extract isClient and isNumber isBoolean * test: update test * refactor: extract isClient to browser
7 lines
174 B
TypeScript
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 }
|