mostrar title
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Cat /dev/Nulo 2023-09-05 20:17:07 -03:00
parent 7375a12c91
commit ccc0f5ebe1

View file

@ -17,6 +17,12 @@ export const currentRoute = writable<{
params?: Record<string, string>; params?: Record<string, string>;
}>({ component: ChooseWorld }); }>({ component: ChooseWorld });
currentRoute.subscribe((value) => {
if (value.params?.pageId) {
document.title = `${value.params.pageId} - Schreiben`
} else document.title = 'Schreiben'
})
export let router = navaid("/", () => export let router = navaid("/", () =>
currentRoute.set({ component: NotFound }), currentRoute.set({ component: NotFound }),
); );