reshuffle pageChecks
This commit is contained in:
parent
f5937896d8
commit
509cf6205e
|
@ -4,14 +4,15 @@ import { route } from "preact-router";
|
|||
|
||||
export async function pageChecks(url: string, api: API, settings: Settings): Promise<boolean> {
|
||||
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) {
|
||||
|
|
Loading…
Reference in a new issue