From 71afbe7028055ee884adb8fd0f29a2eb35c96f79 Mon Sep 17 00:00:00 2001 From: nonameShijian <2954700422@qq.com> Date: Fri, 17 May 2024 15:48:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=A4=84=E7=90=86=E7=BD=91?= =?UTF-8?q?=E9=A1=B5=E5=8F=82=E6=95=B0=E5=90=8E=E9=87=8D=E5=90=AF=E7=9A=84?= =?UTF-8?q?=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game/entry.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/game/entry.js b/game/entry.js index ae5962bf7..1f88a5976 100644 --- a/game/entry.js +++ b/game/entry.js @@ -175,7 +175,8 @@ boot().then(() => { }) .then(() => { const url = new URL(location.href); - location.href = url.origin + url.pathname; + url.searchParams.delete("sendUpdate"); + location.href = url.toString(); }).catch(e => { if (navigator.notification) { navigator.notification.activityStop(); @@ -189,7 +190,8 @@ boot().then(() => { game.saveConfig(`extension_${value}_enable`, true); alert(`扩展${value}已导入成功,点击确定重启游戏`); const url = new URL(location.href); - location.href = url.origin + url.pathname; + url.searchParams.delete("importExtensionName"); + location.href = url.toString(); } } }