From ef88eba498d0362137bcc9203a4cf1a20b6dec9e Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 30 Jan 2024 16:34:38 +0100 Subject: np: authentificate native --- web/script/transition.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'web/script/transition.ts') diff --git a/web/script/transition.ts b/web/script/transition.ts index a15a6b0..03338ca 100644 --- a/web/script/transition.ts +++ b/web/script/transition.ts @@ -23,6 +23,7 @@ globalThis.addEventListener("navigationrequiresreload", () => { function patch_page() { document.querySelectorAll("a").forEach(el => { + if (!el.href.startsWith("http")) return el.addEventListener("click", async ev => { ev.preventDefault() await transition_to(el.href) -- cgit v1.2.3-70-g09d2