Showing
1 changed file
with
2 additions
and
3 deletions
@@ -4,7 +4,6 @@ | @@ -4,7 +4,6 @@ | ||
4 | const qs = require('yoho-qs'); | 4 | const qs = require('yoho-qs'); |
5 | const cookie = require('yoho-cookie'); | 5 | const cookie = require('yoho-cookie'); |
6 | const dialog = require('js/plugin/dialog'); | 6 | const dialog = require('js/plugin/dialog'); |
7 | -const yoho = require('js/yoho-app'); | ||
8 | 7 | ||
9 | const u = navigator.userAgent; | 8 | const u = navigator.userAgent; |
10 | const isFromYOHO = /m\.yohobuy\.com/i.test(document.referrer); | 9 | const isFromYOHO = /m\.yohobuy\.com/i.test(document.referrer); |
@@ -87,7 +86,7 @@ const getIOSVersion = () => { | @@ -87,7 +86,7 @@ const getIOSVersion = () => { | ||
87 | }; | 86 | }; |
88 | const ua = navigator.userAgent; | 87 | const ua = navigator.userAgent; |
89 | const isOriginalChrome = /chrome\/[\d.]+ Mobile Safari\/[\d.]+/i.test(ua) && | 88 | const isOriginalChrome = /chrome\/[\d.]+ Mobile Safari\/[\d.]+/i.test(ua) && |
90 | - yoho.isAndroid && | 89 | + isAndroid && |
91 | ua.indexOf('Version') < 0; | 90 | ua.indexOf('Version') < 0; |
92 | 91 | ||
93 | 92 | ||
@@ -148,7 +147,7 @@ const callA = (url, noFall) => { | @@ -148,7 +147,7 @@ const callA = (url, noFall) => { | ||
148 | export const toAppPage = (appUrl, noFall) => { | 147 | export const toAppPage = (appUrl, noFall) => { |
149 | if (isOriginalChrome) { | 148 | if (isOriginalChrome) { |
150 | callA(appUrl, noFall); | 149 | callA(appUrl, noFall); |
151 | - } else if (yoho.isiOS) { | 150 | + } else if (isiOS) { |
152 | if (getIOSVersion() < 9) { | 151 | if (getIOSVersion() < 9) { |
153 | callIframe(appUrl, noFall); | 152 | callIframe(appUrl, noFall); |
154 | } else { | 153 | } else { |
-
Please register or login to post a comment