Format.
This commit is contained in:
parent
a57693fc3a
commit
de123dacf3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue