From e246ed91a62e6f7b4db57fd2f9675fcb4b7d9db8 Mon Sep 17 00:00:00 2001 From: Vika Date: Thu, 29 Sep 2022 00:54:34 +0300 Subject: indieauth: fix submit handler not being applied --- kittybox-rs/javascript/src/indieauth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kittybox-rs/javascript/src') diff --git a/kittybox-rs/javascript/src/indieauth.ts b/kittybox-rs/javascript/src/indieauth.ts index 8222070..ef314e9 100644 --- a/kittybox-rs/javascript/src/indieauth.ts +++ b/kittybox-rs/javascript/src/indieauth.ts @@ -63,7 +63,7 @@ async function webauthn_authenticate() { } } -async function submit_handler(e: SubmitEvent) { +export async function submit_handler(e: SubmitEvent) { e.preventDefault(); if (e.target != null && e.target instanceof HTMLFormElement) { const form = e.target as HTMLFormElement; -- cgit 1.4.1