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

This commit is contained in:
MHSanaei committed 2026-05-13 14:23:57 +02:00 Unverified
1 parent bbefe91011
commit 4e1b597914
15 files changed
+28 -7

No files matched your search

+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 => {