about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--kittybox-rs/templates/src/indieauth.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/kittybox-rs/templates/src/indieauth.rs b/kittybox-rs/templates/src/indieauth.rs
index 1b47daf..d2d7219 100644
--- a/kittybox-rs/templates/src/indieauth.rs
+++ b/kittybox-rs/templates/src/indieauth.rs
@@ -11,7 +11,7 @@ markup::define! {
         script[type="module"] {
             @markup::raw(r#"import { submit_handler } from "/.kittybox/static/indieauth.js";
 
-document.getElementById("indieauth_page").onSubmit = submit_handler;
+document.getElementById("indieauth_page").addEventHandler("submit", submit_handler);
 "#)
         }
         main {