Update the styling to better match existing styles

Co-authored-by: Adam Stachowicz <saibamenppl@gmail.com>
This commit is contained in:
Thies 2021-08-25 14:08:41 +02:00 committed by GitHub
parent 5d438ca2b6
commit 72740ba477
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {