@subiz/widget-v4 4.1.20 → 4.1.21
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/package.json +1 -1
- package/src/store/store.js +1 -4
package/package.json
CHANGED
package/src/store/store.js
CHANGED
|
@@ -374,6 +374,7 @@ export default class Store {
|
|
|
374
374
|
async init(accid, mask, userRef) {
|
|
375
375
|
this.readyGate.close()
|
|
376
376
|
accid = (accid || '').trim()
|
|
377
|
+
this.api.setAuth({accid: accid})
|
|
377
378
|
this.g_sync = {}
|
|
378
379
|
if (!userRef) {
|
|
379
380
|
// try to find userRef in cookie
|
|
@@ -407,10 +408,6 @@ export default class Store {
|
|
|
407
408
|
}
|
|
408
409
|
}
|
|
409
410
|
|
|
410
|
-
this.api.setAuth({accid: accid})
|
|
411
|
-
|
|
412
|
-
userRef = this.cookie.get('__sbref', '')
|
|
413
|
-
|
|
414
411
|
// set cookie forever
|
|
415
412
|
if (userRef) this.cookie.set('__sbref', userRef)
|
|
416
413
|
|