mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-21 01:46:28 +08:00
修复ui可能会被多次加载的问题
This commit is contained in:
1 parent
bfc2e95ef5
commit
162d93e5db
4 files changed
+100
-63
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user