first
This commit is contained in:
17
node_modules/vant/lib/utils/validate/system.js
generated
vendored
Normal file
17
node_modules/vant/lib/utils/validate/system.js
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.isAndroid = isAndroid;
|
||||
exports.isIOS = isIOS;
|
||||
|
||||
var _ = require("..");
|
||||
|
||||
function isAndroid() {
|
||||
/* istanbul ignore next */
|
||||
return _.isServer ? false : /android/.test(navigator.userAgent.toLowerCase());
|
||||
}
|
||||
|
||||
function isIOS() {
|
||||
/* istanbul ignore next */
|
||||
return _.isServer ? false : /ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase());
|
||||
}
|
Reference in New Issue
Block a user