Showing
1 changed file
with
2 additions
and
1 deletions
@@ -98,7 +98,8 @@ function getShoppingKey() { | @@ -98,7 +98,8 @@ function getShoppingKey() { | ||
98 | a.async = 1; | 98 | a.async = 1; |
99 | a.src = j; | 99 | a.src = j; |
100 | m.parentNode.insertBefore(a, m); | 100 | m.parentNode.insertBefore(a, m); |
101 | -}(window, document, 'script', '//cdn.yoho.cn/yas-jssdk/1.0.17/yas.js', '_yas')); | 101 | +})(window, document, 'script', (document.location.protocol === 'https:' ? 'https' : 'http') + '://' + // eslint-disable-line |
102 | +'cdn.yoho.cn/yas-jssdk/1.0.17/yas.js', '_yas'); // eslint-disable-line | ||
102 | 103 | ||
103 | (function() { | 104 | (function() { |
104 | var uid = getUid(); | 105 | var uid = getUid(); |
-
Please register or login to post a comment