From 509cf6205e40192d14cb1ace5d7418333e29f070 Mon Sep 17 00:00:00 2001 From: ChaotiCryptidz Date: Mon, 7 Mar 2022 18:17:55 +0000 Subject: [PATCH] reshuffle pageChecks --- src/pageChecks.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) {