diff --git a/src/pageChecks.ts b/src/pageChecks.ts index 423a89f..3e9591b 100644 --- a/src/pageChecks.ts +++ b/src/pageChecks.ts @@ -4,14 +4,15 @@ import { route } from "preact-router"; export async function pageChecks(url: string, api: API, settings: Settings): Promise { if (url.startsWith("/set_language")) return; + if (url.startsWith("/me")) return; + if (url.startsWith("/settings")) return; + if (url.startsWith("/pw_gen")) return; if (settings.language.length == 0) { route("/set_language", true); return true; } - if (url.startsWith("/me") || url.startsWith("/pw_gen")) return; - if (url.startsWith("/set_vault_url")) return; if (settings.apiURL.length == 0) {