diff options
author | metamuffin <metamuffin@disroot.org> | 2024-01-30 16:34:38 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-01-30 16:34:38 +0100 |
commit | ef88eba498d0362137bcc9203a4cf1a20b6dec9e (patch) | |
tree | bd1e6ce50d5f591b722ed12459a116a0b0aff883 /web/script/transition.ts | |
parent | 81326d9178a04814c0c8ed669bdf2f19fc865fbe (diff) | |
download | jellything-ef88eba498d0362137bcc9203a4cf1a20b6dec9e.tar jellything-ef88eba498d0362137bcc9203a4cf1a20b6dec9e.tar.bz2 jellything-ef88eba498d0362137bcc9203a4cf1a20b6dec9e.tar.zst |
np: authentificate native
Diffstat (limited to 'web/script/transition.ts')
-rw-r--r-- | web/script/transition.ts | 1 |
1 files changed, 1 insertions, 0 deletions
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) |