Authored by 毕凯

app 判断

@@ -6,7 +6,7 @@ const cookie = require('yoho-cookie'); @@ -6,7 +6,7 @@ const cookie = require('yoho-cookie');
6 6
7 const u = navigator.userAgent; 7 const u = navigator.userAgent;
8 const isFromYOHO = /m\.yohobuy\.com/i.test(document.referrer); 8 const isFromYOHO = /m\.yohobuy\.com/i.test(document.referrer);
9 -const isApp = /yohobuy/i.test(u) || 9 +const isApp = /yoho/i.test(u) ||
10 !!window.yohoInterface || 10 !!window.yohoInterface ||
11 /app_version=/i.test(location.search) || 11 /app_version=/i.test(location.search) ||
12 /openrefer=/i.test(location.search); 12 /openrefer=/i.test(location.search);