From db845e8cc6e3802ed8dde04f9c2aab078e36417d Mon Sep 17 00:00:00 2001 From: Vika Date: Fri, 3 Jan 2025 13:40:23 +0300 Subject: Fix the IndieAuth script Change-Id: I17af1bd69de0f885e28db161d9ca81fa199a8aa5 --- templates/javascript/src/indieauth.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'templates/javascript') 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); -- cgit 1.4.1