@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@subiz/widget-v4",
3
- "version": "4.1.20",
3
+ "version": "4.1.21",
4
4
  "main": "./compiled_src/lib.js",
5
5
  "scripts": {
6
6
  "dev": "npx webpack serve --config webpack.dev.js",
@@ -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