mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 23:04:04 +00:00
clean up + default ntfs.sh server url
This commit is contained in:
parent
122e6a842b
commit
14dbe7c334
2 changed files with 1 additions and 3 deletions
|
@ -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,
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
export default {
|
||||
mounted() {
|
||||
if (typeof this.$parent.notification.ntfyPriority === "undefined") {
|
||||
this.$parent.notification.ntfyserverurl = "https://ntfy.sh";
|
||||
this.$parent.notification.ntfyPriority = 5;
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue