补充代码;减少diff

This commit is contained in:
IceCola 2024-05-17 00:07:45 +08:00
parent e3e04e0f73
commit c3fe4591c6
1 changed files with 15 additions and 13 deletions

View File

@ -513,8 +513,6 @@ export async function boot() {
}
delete _status.htmlbg;
const isFirstStartAfterUpdate = !!window.noname_update;
// 无名杀更新日志
if (window.noname_update) {
Reflect.set(lib, "version", window.noname_update.version);
@ -643,11 +641,15 @@ export async function boot() {
}
// await Promise.allSettled(_status.extensionLoading);
const isFirstStartAfterUpdate = lib.version && lib.version != lib.config.version;
if (isFirstStartAfterUpdate && extErrorList.length) {
const stacktraces = extErrorList.map(e => e instanceof Error ? e.stack : String(e)).join("\n\n")
// game.saveConfig("update_first_log", stacktraces);
if(confirm(`扩展加载出错!是否重新载入游戏?\n本次更新可能导致了扩展出现了错误:\n${stacktraces}`)){
if(confirm(`扩展加载出错!是否重新载入游戏?\n本次更新可能导致了扩展出现了错误:\n\n${stacktraces}`)){
game.reload();
clearTimeout(resetGameTimeout);
return;
}
}