Skip to content

Commit

Permalink
0.0.9 fix params issues
Browse files Browse the repository at this point in the history
  • Loading branch information
crosshj committed Aug 25, 2022
1 parent e6231d4 commit fc95074
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fiug/layout",
"version": "0.0.8",
"version": "0.0.9",
"description": "page layout for browser applications",
"main": "dist/layout.js",
"exports": {
Expand Down
5 changes: 4 additions & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ export const randomId = (prefix="_") =>


export function UrlParams(url){
const urlParams = new URLSearchParams(url.split('?').pop() || "");
const paramsString = url.includes('?')
? url.split('?').pop()
: "";
const urlParams = new URLSearchParams(paramsString);
return urlParams;
};

Expand Down

0 comments on commit fc95074

Please sign in to comment.