From cb82dae6eb23a328a9199e171b9d62dc99b0f8c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C5=ABdolfs=20O=C5=A1i=C5=86=C5=A1?= Date: Mon, 9 Sep 2024 09:31:56 +0200 Subject: [PATCH] Remove setTitle There is no page title that is shown to the user, so there's no point in setting it. --- src/lib/router.ts | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/lib/router.ts b/src/lib/router.ts index a20adf756..deaa1a82a 100644 --- a/src/lib/router.ts +++ b/src/lib/router.ts @@ -80,30 +80,11 @@ async function navigate( return; } - setTitle(loadedRoute); activeRouteStore.set(loadedRoute); activeUnloadedRouteStore.set(newRoute); isLoading.set(false); } -function setTitle(loadedRoute: LoadedRoute) { - const title: string[] = []; - - if (loadedRoute.resource === "booting") { - title.push("Radicle"); - } else if (loadedRoute.resource === "home") { - title.push("Home"); - title.push("Radicle"); - } else if (loadedRoute.resource === "authenticationError") { - title.push("Authentication Error"); - title.push("Radicle"); - } else { - utils.unreachable(loadedRoute); - } - - document.title = title.join(" ยท "); -} - export async function push(newRoute: Route): Promise { await navigate("push", newRoute); }