mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
ui: allow function as extra AutoloadPage
This commit is contained in:
1 parent
23e4b1ccad
commit
89b32f7768
2 files changed
+3
-2
No files matched your search
@@ -16,8 +16,9 @@ export default class PageLoader {
|
||||
return page;
|
||||
}),
|
||||
];
|
||||
if (window.Hydro.extraPages) this.pageInstances.push(...window.Hydro.extraPages);
|
||||
if (window.Hydro.extraPages) this.pageInstances.push(...window.Hydro.extraPages.filter((i) => i instanceof Page));
|
||||
window.Hydro.pageInstances = this.pageInstances;
|
||||
window.Hydro.extraPages.filter((i) => !(i instanceof Page)).forEach((i) => i());
|
||||
}
|
||||
|
||||
getAutoloadPages() {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/ui-default",
|
||||
"version": "4.26.19",
|
||||
"version": "4.26.20",
|
||||
"author": "undefined <i@undefined.moe>",
|
||||
"license": "AGPL-3.0",
|
||||
"main": "hydro.js",
|
||||
|
||||
Reference in new issue
Block a user