修改处理网页参数后重启的路径
This commit is contained in:
parent
79d833e15a
commit
71afbe7028
|
@ -175,7 +175,8 @@ boot().then(() => {
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
const url = new URL(location.href);
|
const url = new URL(location.href);
|
||||||
location.href = url.origin + url.pathname;
|
url.searchParams.delete("sendUpdate");
|
||||||
|
location.href = url.toString();
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
if (navigator.notification) {
|
if (navigator.notification) {
|
||||||
navigator.notification.activityStop();
|
navigator.notification.activityStop();
|
||||||
|
@ -189,7 +190,8 @@ boot().then(() => {
|
||||||
game.saveConfig(`extension_${value}_enable`, true);
|
game.saveConfig(`extension_${value}_enable`, true);
|
||||||
alert(`扩展${value}已导入成功,点击确定重启游戏`);
|
alert(`扩展${value}已导入成功,点击确定重启游戏`);
|
||||||
const url = new URL(location.href);
|
const url = new URL(location.href);
|
||||||
location.href = url.origin + url.pathname;
|
url.searchParams.delete("importExtensionName");
|
||||||
|
location.href = url.toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue