about summary refs log tree commit diff
path: root/templates/javascript/src
diff options
context:
space:
mode:
Diffstat (limited to 'templates/javascript/src')
-rw-r--r--templates/javascript/src/indieauth.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/javascript/src/indieauth.ts b/templates/javascript/src/indieauth.ts
index 57f075e..eb9331e 100644
--- a/templates/javascript/src/indieauth.ts
+++ b/templates/javascript/src/indieauth.ts
@@ -148,3 +148,5 @@ export async function submit_handler(e: SubmitEvent) {
   }
 
 }
+
+(document.getElementById("indieauth_page") as HTMLFormElement).addEventListener("submit", submit_handler);