about summary refs log tree commit diff
path: root/kittybox-rs/templates
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2022-09-29 01:51:31 +0300
committerVika <vika@fireburn.ru>2022-09-29 01:51:31 +0300
commitefbe51b0874773230ec6bafac1e630f603acaf69 (patch)
treeeceabc341804f93349cd1b81ee3ad75c8a6fc3d8 /kittybox-rs/templates
parentfe797b87332bf9c9625da1474fd0956d01de60e6 (diff)
downloadkittybox-efbe51b0874773230ec6bafac1e630f603acaf69.tar.zst
Diffstat (limited to 'kittybox-rs/templates')
-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 {