Browse Source
Update the styling to better match existing styles
Co-authored-by: Adam Stachowicz <saibamenppl@gmail.com>
pull/260/head
Thies
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
1 deletions
-
server/notification.js
|
|
@ -95,8 +95,11 @@ class Notification { |
|
|
|
await axios.post(notification.discordWebhookUrl, discordtestdata) |
|
|
|
return okMsg; |
|
|
|
} |
|
|
|
|
|
|
|
let url = monitorJSON["url"] === "https://" ? monitorJSON["hostname"] : monitorJSON["url"] |
|
|
|
if (monitorJSON["port"]) url += ":" + monitorJSON[port] |
|
|
|
if (monitorJSON["port"]) { |
|
|
|
url += ":" + monitorJSON[port]; |
|
|
|
} |
|
|
|
|
|
|
|
// If heartbeatJSON is not null, we go into the normal alerting loop.
|
|
|
|
if (heartbeatJSON["status"] == 0) { |
|
|
|