Clear ntfy message text when successfully sent
This commit is contained in:
parent
c0ff5af4bb
commit
ef718958f6
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue