Authored by 陈峰

commit

1 { 1 {
2 "name": "yohobuywap-node", 2 "name": "yohobuywap-node",
3 - "version": "6.9.2-13", 3 + "version": "6.9.2-14",
4 "private": true, 4 "private": true,
5 "description": "A New Yohobuy Project With Express", 5 "description": "A New Yohobuy Project With Express",
6 "repository": { 6 "repository": {
@@ -83,7 +83,7 @@ window._getMktCode = getMktc; @@ -83,7 +83,7 @@ window._getMktCode = getMktc;
83 const getIOSVersion = () => { 83 const getIOSVersion = () => {
84 const verion = navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/); 84 const verion = navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);
85 85
86 - return parseInt(verion[1], 10); 86 + return verion ? parseInt(verion[1], 10) : 0;
87 }; 87 };
88 const ua = navigator.userAgent; 88 const ua = navigator.userAgent;
89 const isOriginalChrome = /chrome\/[\d.]+ Mobile Safari\/[\d.]+/i.test(ua) && 89 const isOriginalChrome = /chrome\/[\d.]+ Mobile Safari\/[\d.]+/i.test(ua) &&