ui: bug fix

This commit is contained in:
undefined committed 2022-07-31 23:49:15 +08:00
1 parent f22caf8c7b
commit 2d4d99c80c
2 files changed
+6 -4

No files matched your search

+5 -3
View File
@@ -62,12 +62,14 @@ async function buildUI() {
constant = JSON.stringify(payload);
UiContextBase.constantVersion = hash = version;
}
bus.on('app/started', buildUI);
bus.on('system/setting', () => {
function updateLogo() {
[UiContextBase.nav_logo_dark, UiContextBase.nav_logo_dark_2x] = system.getMany([
'ui-default.nav_logo_dark', 'ui-default.nav_logo_dark_2x',
]);
});
}
bus.on('app/started', buildUI);
bus.on('app/started', updateLogo);
bus.on('system/setting', updateLogo);
class WikiHelpHandler extends Handler {
noCheckPermView = true;
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@hydrooj/ui-default",
"version": "4.38.28",
"version": "4.38.29",
"author": "undefined <i@undefined.moe>",
"license": "AGPL-3.0",
"main": "hydro.js",