|
|
@ -9,7 +9,7 @@ class Ntfy extends NotificationProvider {
|
|
|
|
let okMsg = "Sent Successfully.";
|
|
|
|
let okMsg = "Sent Successfully.";
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
let headers = {};
|
|
|
|
let headers = {};
|
|
|
|
if (notification.ntfyusername.length > 0) {
|
|
|
|
if (notification.ntfyusername) {
|
|
|
|
headers = {
|
|
|
|
headers = {
|
|
|
|
"Authorization": "Basic " + Buffer.from(notification.ntfyusername + ":" + notification.ntfypassword).toString("base64"),
|
|
|
|
"Authorization": "Basic " + Buffer.from(notification.ntfyusername + ":" + notification.ntfypassword).toString("base64"),
|
|
|
|
};
|
|
|
|
};
|
|
|
|