about summary refs log tree commit diff
path: root/kittybox-rs/javascript/src
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2022-09-29 00:54:34 +0300
committerVika <vika@fireburn.ru>2022-09-29 00:54:34 +0300
commite246ed91a62e6f7b4db57fd2f9675fcb4b7d9db8 (patch)
tree6a7d63f246676de1808030a915cbafc83568280b /kittybox-rs/javascript/src
parentc35a55babd9aa6e1ad8797f3d54deec2f78ff78a (diff)
downloadkittybox-e246ed91a62e6f7b4db57fd2f9675fcb4b7d9db8.tar.zst
indieauth: fix submit handler not being applied
Diffstat (limited to 'kittybox-rs/javascript/src')
-rw-r--r--kittybox-rs/javascript/src/indieauth.ts2
1 files changed, 1 insertions, 1 deletions
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;