vue-sellsuki-auth-2
Advanced tools
Comparing version 2.4.1 to 2.4.3
19
index.js
@@ -76,16 +76,7 @@ /* global localStorage */ | ||
Vue.prototype.$sellsuki_auth.initLocalStorage = (storeId) => { | ||
alert('123') | ||
document.cookie = 'sellsuki.storeId2=' + storeId + ';domain=.sellsuki.com' | ||
document.cookie = 'sellsuki.storeId=' + storeId | ||
// if (window.location.origin === 'http') { | ||
// document.cookie = 'sellsuki.storeId=' + storeId | ||
// } else { | ||
// document.cookie = 'sellsuki.storeId=' + storeId + ';domain=.sellsuki.com' | ||
// } | ||
// if (window.location.origin === 'https://dm.sellsuki.com' || window.location.origin === 'https://staging-dm.sellsuki.com') { | ||
// document.cookie = 'sellsuki.storeId=' + storeId + ';domain=.sellsuki.com' | ||
// } else { | ||
// document.cookie = 'sellsuki.storeId=' + storeId | ||
// } | ||
if (window.location.origin === 'https://dm.sellsuki.com' || window.location.origin === 'https://staging-dm.sellsuki.com') { | ||
document.cookie = 'sellsuki.storeId=' + storeId + ';domain=.sellsuki.com' | ||
} else { | ||
document.cookie = 'sellsuki.storeId=' + storeId | ||
} | ||
if (!setupStorage()) { | ||
@@ -92,0 +83,0 @@ window.location.href = scope.portal |
{ | ||
"name": "vue-sellsuki-auth-2", | ||
"version": "2.4.1", | ||
"version": "2.4.3", | ||
"description": "vue-sellsuki-auth new version", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
13566
220