Clear ntfy message text when successfully sent

This commit is contained in:
pancakes 2025-08-20 02:01:12 +10:00
parent c0ff5af4bb
commit ef718958f6
Signed by: pancakes
SSH key fingerprint: SHA256:yrp4c4hhaPoPG07fb4QyQIgAdlbUdsJvUAydJEWnfTw

View file

@ -26,7 +26,10 @@
Tags: "black_cat", Tags: "black_cat",
}, },
}); });
if (resp.ok) alert(`Sent: ${message}`); if (resp.ok) {
document.getElementById("ntfy-message").value = "";
alert(`Sent: ${message}`);
}
ntfyLock = false; ntfyLock = false;
} }