浏览代码

fix: initialParams.has is not a function error

Sv443 3 月之前
父节点
当前提交
739f173444
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/constants.ts

+ 1 - 1
src/constants.ts

@@ -31,7 +31,7 @@ export const devServerPort = Number(getRawVal<number>(devServerPortRaw, 8710));
 export const changelogUrl = `https://raw.githubusercontent.com/${repo}/${buildNumber??branch}/changelog.md`;
 
 /** The URL search parameters at the earliest possible time */
-export const initialParams = Object.assign({}, new URL(location.href).searchParams);
+export const initialParams = new URL(location.href).searchParams;
 
 /** Names of platforms by key of {@linkcode host} */
 export const platformNames = {