chayns-api 1.0.6 → 1.0.7
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.
|
@@ -66,10 +66,7 @@ class AppWrapper {
|
|
|
66
66
|
locationPersonId: AppInfo.LocationPersonId,
|
|
67
67
|
urlHash: (_window2 = window) === null || _window2 === void 0 ? void 0 : _window2.location.hash.replace('#', '')
|
|
68
68
|
},
|
|
69
|
-
parameters:
|
|
70
|
-
p[k] = v;
|
|
71
|
-
return p;
|
|
72
|
-
}, {}),
|
|
69
|
+
parameters: Object.fromEntries(new URLSearchParams(location.search)),
|
|
73
70
|
user: {
|
|
74
71
|
firstName: AppUser.FirstName,
|
|
75
72
|
lastName: AppUser.LastName,
|
|
@@ -56,11 +56,7 @@ export class AppWrapper {
|
|
|
56
56
|
locationPersonId: AppInfo.LocationPersonId,
|
|
57
57
|
urlHash: (_window2 = window) === null || _window2 === void 0 ? void 0 : _window2.location.hash.replace('#', '')
|
|
58
58
|
},
|
|
59
|
-
parameters:
|
|
60
|
-
let [k, v] = _ref;
|
|
61
|
-
p[k] = v;
|
|
62
|
-
return p;
|
|
63
|
-
}, {}),
|
|
59
|
+
parameters: Object.fromEntries(new URLSearchParams(location.search)),
|
|
64
60
|
user: {
|
|
65
61
|
firstName: AppUser.FirstName,
|
|
66
62
|
lastName: AppUser.LastName,
|
|
@@ -183,10 +179,10 @@ export class AppWrapper {
|
|
|
183
179
|
},
|
|
184
180
|
invokeDialogCall: async (value, callback) => {
|
|
185
181
|
const callbackName = `chaynsApiV5Callback_${this.counter++}`;
|
|
186
|
-
window[callbackName] =
|
|
182
|
+
window[callbackName] = _ref => {
|
|
187
183
|
let {
|
|
188
184
|
retVal
|
|
189
|
-
} =
|
|
185
|
+
} = _ref;
|
|
190
186
|
callback === null || callback === void 0 ? void 0 : callback(retVal);
|
|
191
187
|
delete window[callbackName];
|
|
192
188
|
};
|