This commit is contained in:
Tipx-L 2024-01-28 19:02:47 -08:00
parent a57693fc3a
commit de123dacf3
1 changed files with 4 additions and 4 deletions

View File

@ -33,7 +33,7 @@ export function canUseHttpProtocol() {
try {
require('express');
return true;
} catch {
} catch {
return false;
}
}
@ -530,7 +530,7 @@ export async function boot() {
}
// await Promise.allSettled(_status.extensionLoading);
_status.extensionLoaded.filter(name=>game.hasExtension(name)).forEach((name) => {
_status.extensionLoaded.filter(name => game.hasExtension(name)).forEach((name) => {
lib.announce.publish("Noname.Init.Extension.onLoad", name);
lib.announce.publish(`Noname.Init.Extension.${name}.onLoad`, void 0);
});
@ -895,9 +895,9 @@ async function setOnError() {
}
//解析parsex里的content fun内容(通常是技能content)
// @ts-ignore
else if (err && err.stack && ['at Object.eval [as content]', 'at Proxy.content'].some(str =>{
else if (err && err.stack && ['at Object.eval [as content]', 'at Proxy.content'].some(str => {
let stackSplit1 = err.stack.split('\n')[1];
if(stackSplit1){
if (stackSplit1) {
return stackSplit1.trim().startsWith(str);
}
return false;