补充代码;减少diff
This commit is contained in:
parent
e3e04e0f73
commit
c3fe4591c6
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue