@karpeleslab/klbfw 0.2.7 → 0.2.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.
Files changed (2) hide show
  1. package/fw-wrapper.js +14 -1
  2. package/package.json +1 -1
package/fw-wrapper.js CHANGED
@@ -196,7 +196,20 @@ const supported = () => true;
196
196
  * Gets the current GET parameters
197
197
  * @returns {Object} GET parameters
198
198
  */
199
- const getGET = () => getFWProperty('GET', {});
199
+ const getGET = () => {
200
+ if (typeof FW !== "undefined") {
201
+ return FW.GET !== undefined ? FW.GET : {};
202
+ }
203
+ if (typeof window !== "undefined") {
204
+ const params = {};
205
+ const urlParams = new URLSearchParams(window.location.search);
206
+ urlParams.forEach((value, key) => {
207
+ params[key] = value;
208
+ });
209
+ return params;
210
+ }
211
+ return {};
212
+ };
200
213
 
201
214
  /**
202
215
  * Gets a specific GET parameter
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@karpeleslab/klbfw",
3
- "version": "0.2.7",
3
+ "version": "0.2.8",
4
4
  "description": "Frontend Framework",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",