1 line
1.2 KiB
JSON
1 line
1.2 KiB
JSON
{"ast":null,"code":"import { isServer } from '..';\nexport function isAndroid() {\n /* istanbul ignore next */\n return isServer ? false : /android/.test(navigator.userAgent.toLowerCase());\n}\nexport function isIOS() {\n /* istanbul ignore next */\n return isServer ? false : /ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase());\n}","map":{"version":3,"names":["isServer","isAndroid","test","navigator","userAgent","toLowerCase","isIOS"],"sources":["E:/work/sino/sino-h5/node_modules/vant/es/utils/validate/system.js"],"sourcesContent":["import { isServer } from '..';\nexport function isAndroid() {\n /* istanbul ignore next */\n return isServer ? false : /android/.test(navigator.userAgent.toLowerCase());\n}\nexport function isIOS() {\n /* istanbul ignore next */\n return isServer ? false : /ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase());\n}"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,IAAI;AAC7B,OAAO,SAASC,SAASA,CAAA,EAAG;EAC1B;EACA,OAAOD,QAAQ,GAAG,KAAK,GAAG,SAAS,CAACE,IAAI,CAACC,SAAS,CAACC,SAAS,CAACC,WAAW,CAAC,CAAC,CAAC;AAC7E;AACA,OAAO,SAASC,KAAKA,CAAA,EAAG;EACtB;EACA,OAAON,QAAQ,GAAG,KAAK,GAAG,sBAAsB,CAACE,IAAI,CAACC,SAAS,CAACC,SAAS,CAACC,WAAW,CAAC,CAAC,CAAC;AAC1F"},"metadata":{},"sourceType":"module","externalDependencies":[]} |