update postInit api, add nav_logo opt

This commit is contained in:
undefined committed 2020-07-13 19:19:21 +08:00
1 parent 13e3e0ec98
commit 3eb593d134
16 files changed
+137 -47

No files matched your search

+7
View File
@@ -59,6 +59,13 @@ export async function load(call) {
}
}
}
for (const postInit of global.Hydro.postInit) {
try {
await postInit();
} catch (e) {
console.error(e);
}
}
pending = [];
return await modelSystem.get('server.worker');
}
+3
View File
@@ -52,6 +52,9 @@ export async function load() {
}
for (const i of builtinScript) require(`../script/${i}`);
await script(pending, fail, active);
for (const postInit of global.Hydro.postInit) {
await postInit();
}
pending = [];
await server.start();
setInterval(() => {