1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

config.json read fixes.

This commit is contained in:
Ylian Saint-Hilaire 2023-09-11 09:50:15 -07:00
parent 0ee671ac74
commit 62f52e91c7
3 changed files with 19 additions and 12 deletions

View file

@ -245,7 +245,7 @@ module.exports.CreateServer = function (parent) {
}
// Pushover client setup (https://pushover.net)
if (parent.config.messaging.pushover) {
if (typeof parent.config.messaging.pushover == 'object') {
// Validate Pushover configuration values
var pushoverOK = true;
if (typeof parent.config.messaging.pushover.token != 'string') { console.log('Invalid or missing Pushover token.'); pushoverOK = false; }