Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyfromundefined committed May 22, 2024
1 parent 28655b2 commit 7e2bd20
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion extensions/plugin-history-sync/src/makeTemplate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ export function pathToUrl(path: string) {
}

export function urlSearchParamsToMap(urlSearchParams: URLSearchParams) {
return Object.fromEntries(urlSearchParams.entries());
const map: { [key: string]: any } = {};

urlSearchParams.forEach((value, key) => {
map[key] = value;
});

return map;
}

function appendTrailingSlashInPathname(pathname: string) {
Expand Down

0 comments on commit 7e2bd20

Please sign in to comment.