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/src/indieauth.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'templates/src/indieauth.rs') diff --git a/templates/src/indieauth.rs b/templates/src/indieauth.rs index 5f92196..ce67108 100644 --- a/templates/src/indieauth.rs +++ b/templates/src/indieauth.rs @@ -10,12 +10,7 @@ markup::define! { app: ClientMetadata, user: serde_json::Value ) { - script[type="module"] { - @markup::raw(r#"import { submit_handler } from "/.kittybox/static/indieauth.js"; - -document.getElementById("indieauth_page").addEventListener("submit", submit_handler); -"#) - } + script[type="module", src="/.kittybox/static/indieauth.js"] {} main { form #indieauth_page[action="/.kittybox/indieauth/auth/confirm", method="POST"] { noscript { -- cgit 1.4.1