@livechat/accounts-sdk 2.0.6-beta.4 → 2.0.6-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accounts-sdk.js +7 -5
- package/dist/accounts-sdk.js.map +1 -1
- package/dist/accounts-sdk.min.js +1 -1
- package/dist/accounts-sdk.min.js.map +1 -1
- package/dist/index.cjs.js +4 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +4 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/accounts-sdk.js
CHANGED
|
@@ -1379,8 +1379,10 @@
|
|
|
1379
1379
|
|
|
1380
1380
|
CookieStorage.prototype.setItem = function (key, value, options) {
|
|
1381
1381
|
var params = Object.assign({
|
|
1382
|
-
expires: 1
|
|
1383
|
-
|
|
1382
|
+
expires: 1,
|
|
1383
|
+
// 1 day
|
|
1384
|
+
SameSite: 'none',
|
|
1385
|
+
Secure: true
|
|
1384
1386
|
}, options);
|
|
1385
1387
|
js_cookie.set(key, value, params);
|
|
1386
1388
|
};
|
|
@@ -2207,8 +2209,8 @@
|
|
|
2207
2209
|
}, {
|
|
2208
2210
|
key: "get",
|
|
2209
2211
|
value: function get(state) {
|
|
2210
|
-
var data = this.storage.getItem(this.options.namespace + state);
|
|
2211
|
-
|
|
2212
|
+
var data = this.storage.getItem(this.options.namespace + state); // this.clear(state);
|
|
2213
|
+
|
|
2212
2214
|
return data || {};
|
|
2213
2215
|
}
|
|
2214
2216
|
}, {
|
|
@@ -2264,7 +2266,7 @@
|
|
|
2264
2266
|
}
|
|
2265
2267
|
|
|
2266
2268
|
if (hashParams) {
|
|
2267
|
-
uri += '
|
|
2269
|
+
uri += '#' + lib.stringify(hashParams);
|
|
2268
2270
|
}
|
|
2269
2271
|
|
|
2270
2272
|
console.log(uri);
|