修复ui可能会被多次加载的问题

This commit is contained in:
undefined committed 2020-07-21 19:45:06 +08:00
1 parent bfc2e95ef5
commit 162d93e5db
4 files changed
+100 -63

No files matched your search

+1
View File
@@ -38,6 +38,7 @@ if (argv._[0]) {
fs.writeFileSync(addonPath, JSON.stringify(addons, null, 2));
}
} else {
addons = Array.from(new Set(addons));
for (const addon of addons) hydro.addon(addon);
hydro.load().catch((e) => {
console.error(e);