Authored by 陈峰

fix mars add carts

... ... @@ -4,7 +4,6 @@
const qs = require('yoho-qs');
const cookie = require('yoho-cookie');
const dialog = require('js/plugin/dialog');
const yoho = require('js/yoho-app');
const u = navigator.userAgent;
const isFromYOHO = /m\.yohobuy\.com/i.test(document.referrer);
... ... @@ -87,7 +86,7 @@ const getIOSVersion = () => {
};
const ua = navigator.userAgent;
const isOriginalChrome = /chrome\/[\d.]+ Mobile Safari\/[\d.]+/i.test(ua) &&
yoho.isAndroid &&
isAndroid &&
ua.indexOf('Version') < 0;
... ... @@ -148,7 +147,7 @@ const callA = (url, noFall) => {
export const toAppPage = (appUrl, noFall) => {
if (isOriginalChrome) {
callA(appUrl, noFall);
} else if (yoho.isiOS) {
} else if (isiOS) {
if (getIOSVersion() < 9) {
callIframe(appUrl, noFall);
} else {
... ...