mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-28 06:08:02 +03:00
Update
This commit is contained in:
parent
1c4ddaeddf
commit
54b9698a05
1 changed files with 4 additions and 4 deletions
|
@ -49,20 +49,20 @@ class Bark extends NotificationProvider {
|
||||||
* @returns {string}
|
* @returns {string}
|
||||||
*/
|
*/
|
||||||
appendAdditionalParameters(notification, postUrl) {
|
appendAdditionalParameters(notification, postUrl) {
|
||||||
|
// set icon to uptime kuma icon, 11kb should be fine
|
||||||
|
postUrl += "&icon=" + barkNotificationAvatar;
|
||||||
// grouping all our notifications
|
// grouping all our notifications
|
||||||
if (notification.barkGroup != null) {
|
if (notification.barkGroup != null) {
|
||||||
postUrl += "&group=" + notification.barkGroup;
|
postUrl += "&group=" + notification.barkGroup;
|
||||||
} else {
|
} else {
|
||||||
// default group name
|
// default name
|
||||||
postUrl += "&group=" + "UptimeKuma";
|
postUrl += "&group=" + "UptimeKuma";
|
||||||
}
|
}
|
||||||
// set icon to uptime kuma icon, 11kb should be fine
|
|
||||||
postUrl += "&icon=" + barkNotificationAvatar;
|
|
||||||
// picked a sound, this should follow system's mute status when arrival
|
// picked a sound, this should follow system's mute status when arrival
|
||||||
if (notification.barkSound != null) {
|
if (notification.barkSound != null) {
|
||||||
postUrl += "&sound=" + notification.barkSound;
|
postUrl += "&sound=" + notification.barkSound;
|
||||||
} else {
|
} else {
|
||||||
// default app sound
|
// default sound
|
||||||
postUrl += "&sound=" + "telegraph";
|
postUrl += "&sound=" + "telegraph";
|
||||||
}
|
}
|
||||||
return postUrl;
|
return postUrl;
|
||||||
|
|
Loading…
Reference in a new issue