mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 22:30:41 +08:00
Remove setTitle
There is no page title that is shown to the user, so there's no point in setting it.
This commit is contained in:
@@ -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<void> {
|
||||
await navigate("push", newRoute);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user