diff --git a/extensions/plugin-history-sync/src/makeTemplate.ts b/extensions/plugin-history-sync/src/makeTemplate.ts index 829ccc24c..2a07e0a5b 100644 --- a/extensions/plugin-history-sync/src/makeTemplate.ts +++ b/extensions/plugin-history-sync/src/makeTemplate.ts @@ -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) {