feat(ui): use the host as the browser tab title prefix

This commit is contained in:
MHSanaei
2026-05-13 14:23:45 +02:00
parent bbefe91011
commit 4e1b597914
15 changed files with 28 additions and 7 deletions
+7
View File
@@ -75,6 +75,13 @@ export class HttpUtil {
}
}
export function applyDocumentTitle() {
const host = window.location.hostname;
if (!host) return;
const current = document.title.trim();
document.title = current ? `${host} - ${current}` : host;
}
export class PromiseUtil {
static async sleep(timeout) {
await new Promise(resolve => {