This commit is contained in:
parent
7375a12c91
commit
ccc0f5ebe1
1 changed files with 6 additions and 0 deletions
|
@ -17,6 +17,12 @@ export const currentRoute = writable<{
|
|||
params?: Record<string, string>;
|
||||
}>({ component: ChooseWorld });
|
||||
|
||||
currentRoute.subscribe((value) => {
|
||||
if (value.params?.pageId) {
|
||||
document.title = `${value.params.pageId} - Schreiben`
|
||||
} else document.title = 'Schreiben'
|
||||
})
|
||||
|
||||
export let router = navaid("/", () =>
|
||||
currentRoute.set({ component: NotFound }),
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue