clean up + default ntfs.sh server url

This commit is contained in:
Philipp Dormann
2022-05-23 21:11:01 +02:00
parent 122e6a842b
commit 14dbe7c334
2 changed files with 1 additions and 3 deletions

View File

@@ -8,9 +8,6 @@ class Ntfy extends NotificationProvider {
async send(notification, msg, monitorJSON = null, heartbeatJSON = null) {
let okMsg = "Sent Successfully.";
try {
if (notification.ntfyserverurl && notification.ntfyserverurl.endsWith("/")) {
notification.ntfyserverurl = notification.ntfyserverurl.slice(0, -1);
}
await axios.post(`${notification.ntfyserverurl}`, {
"topic": notification.ntfytopic,
"message": msg,