abmp-npm 1.8.9 → 1.8.10

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.9",
3
+ "version": "1.8.10",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -62,9 +62,9 @@ async function personalDetailsFormOnReady({
62
62
  saveRegistrationData,
63
63
  validateMemberToken,
64
64
  checkUrlUniqueness,
65
+ query = {}, // Query params passed from host page
65
66
  }) {
66
67
  // Initialize Wix SDK modules
67
- const wixLocation = wixLocationModule();
68
68
  const wixStorage = wixStorageModule();
69
69
  const wixWindow = wixWindowModule();
70
70
 
@@ -107,8 +107,7 @@ async function personalDetailsFormOnReady({
107
107
  };
108
108
 
109
109
  // Main initialization
110
- const query = wixLocation.query || {};
111
- console.log('wixLocation.query', query);
110
+ console.log('query', query);
112
111
  const memberTokenId = query.token;
113
112
  console.log('memberTokenId', memberTokenId);
114
113
  if (!memberTokenId) {