mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
minor bug fixes
This commit is contained in:
8 files changed
+18
-24
No files matched your search
@@ -27,7 +27,7 @@
|
||||
"@zip.js/zip.js": "^2.7.60",
|
||||
"adm-zip": "0.5.16",
|
||||
"cac": "^6.7.14",
|
||||
"cordis": "4.0.0-beta.1",
|
||||
"cordis": "4.0.0-beta.2",
|
||||
"csv-stringify": "^6.5.2",
|
||||
"emoji-regex": "^10.4.0",
|
||||
"emojis-list": "2.1.0",
|
||||
|
||||
@@ -194,7 +194,7 @@ export async function apply(ctx: Context) {
|
||||
await opcount.inc(op, id, periodSecs, maxOperations);
|
||||
},
|
||||
renderTitle(str: string) {
|
||||
const name = this.ctx.setting.get('server.name');
|
||||
const name = this.ctx.get('setting')?.get('server.name') || system.get('server.name');
|
||||
if (this.UiContext.extraTitleContent) return `${this.UiContext.extraTitleContent} - ${this.translate(str)} - ${name}`;
|
||||
return `${this.translate(str)} - ${name}`;
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user