abmp-npm 1.8.16 → 1.8.17

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.16",
3
+ "version": "1.8.17",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -48,8 +48,6 @@ const FORM_SECTION_HANDLER_MAP = {
48
48
 
49
49
  async function personalDetailsOnReady({
50
50
  $w: _$w,
51
- memberTokenId,
52
- baseUrl,
53
51
  getInterestAll,
54
52
  saveRegistrationData,
55
53
  validateMemberToken,
@@ -101,16 +99,14 @@ async function personalDetailsOnReady({
101
99
 
102
100
  let memberData, isValid, isStudent;
103
101
 
104
- // Main initialization
102
+ // Main initialization - Get from wixLocation
103
+ const queryParams = await wixLocation.query();
104
+ const memberTokenId = queryParams.token;
105
+ const baseUrl = await wixLocation.baseUrl();
106
+
105
107
  console.log('memberTokenId', memberTokenId);
106
108
  console.log('baseUrl', baseUrl);
107
109
 
108
- const memberTokenIdAPI = await wixLocation.query();
109
- console.log('memberTokenIdAPI with await', memberTokenIdAPI);
110
-
111
- const baseUrlAPI = await wixLocation.baseUrl();
112
- console.log('baseUrlAPI with await', baseUrlAPI);
113
-
114
110
  if (!memberTokenId) {
115
111
  showUnauthorizedState();
116
112
  return;