abmp-npm 1.8.6 → 1.8.8

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": "abmp-npm",
3
- "version": "1.8.6",
3
+ "version": "1.8.8",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -1,4 +1,5 @@
1
- const { location: wixLocation } = require('@wix/site-location');
1
+ const { location } = require('@wix/site-location');
2
+ const wixLocation = location();
2
3
  const { storage: wixStorage } = require('@wix/site-storage');
3
4
  const { window: wixWindow } = require('@wix/site-window');
4
5
  const _ = require('lodash');
@@ -102,7 +103,9 @@ async function personalDetailsFormOnReady({
102
103
  };
103
104
 
104
105
  // Main initialization
105
- const memberTokenId = await wixLocation.query.token;
106
+ const query = wixLocation.query || {};
107
+ console.log('wixLocation.query', query);
108
+ const memberTokenId = query.token;
106
109
  console.log('memberTokenId', memberTokenId);
107
110
  if (!memberTokenId) {
108
111
  showUnauthorizedState();