vue-sellsuki-auth-2
Advanced tools
Comparing version 2.5.0 to 2.5.1
16
index.js
@@ -83,4 +83,4 @@ /* global localStorage */ | ||
if (string.indexOf(substring) !== -1) { | ||
document.cookie = 'sellsuki.storeId=' + storeId | ||
console.log('set cookie as local') | ||
document.cookie = 'sellsuki.storeId=' + storeId + ';domain=localhost;path=/' | ||
// console.log('set cookie as local') | ||
} else { | ||
@@ -90,15 +90,5 @@ var now = new Date() | ||
document.cookie = 'sellsuki.storeId=' + storeId + ';domain=.sellsuki.com;expires=' + now.toUTCString() + ';path=/' | ||
console.log('set cookie as production') | ||
// console.log('set cookie as production') | ||
} | ||
// console.log('=====' + window.location.origin) | ||
// if (window.location.origin === 'https://dm.sellsuki.com' || window.location.origin === 'https://staging-dm.sellsuki.com' || window.location.origin === 'https://dealer.sellsuki.com' || window.location.origin === 'https://staging-dealer.sellsuki.com') { | ||
// console.log('1') | ||
// var now = new Date() | ||
// now.setHours(now.getHours() + 8760) | ||
// document.cookie = 'sellsuki.storeId=' + storeId + ';domain=.sellsuki.com;expires=' + now.toUTCString() + ';path=/' | ||
// } else { | ||
// console.log('2') | ||
// document.cookie = 'sellsuki.storeId=' + storeId | ||
// } | ||
if (!setupStorage()) { | ||
@@ -105,0 +95,0 @@ window.location.href = scope.portal |
{ | ||
"name": "vue-sellsuki-auth-2", | ||
"version": "2.5.0", | ||
"version": "2.5.1", | ||
"description": "vue-sellsuki-auth new version", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
14681
248