first
This commit is contained in:
9
node_modules/vant/es/utils/validate/system.js
generated
vendored
Normal file
9
node_modules/vant/es/utils/validate/system.js
generated
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
import { isServer } from '..';
|
||||
export function isAndroid() {
|
||||
/* istanbul ignore next */
|
||||
return isServer ? false : /android/.test(navigator.userAgent.toLowerCase());
|
||||
}
|
||||
export function isIOS() {
|
||||
/* istanbul ignore next */
|
||||
return isServer ? false : /ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase());
|
||||
}
|
Reference in New Issue
Block a user