mirror of
https://github.com/amir20/dozzle.git
synced 2025-12-24 22:39:18 +01:00
10 lines
248 B
TypeScript
10 lines
248 B
TypeScript
const { hostname } = config;
|
|
let subtitle = $ref("");
|
|
const title = $computed(() => (subtitle ? `${subtitle} - ` : "") + "Dozzle" + (hostname ? ` @ ${hostname}` : ""));
|
|
|
|
useTitle($$(title));
|
|
|
|
export function setTitle(t: string) {
|
|
subtitle = t;
|
|
}
|