Turn off notifier if errors out

This commit is contained in:
sixteenmillimeter 2020-08-09 20:03:48 -04:00
parent 74621ef1fb
commit 0145bebb4b
1 changed files with 2 additions and 0 deletions

View File

@ -52,12 +52,14 @@ gui.notify = function (title, message) {
}, function (err, response) { }, function (err, response) {
// Response is response from notification // Response is response from notification
if (err) { if (err) {
gui.notifierWorking = false;
log.error(`Error with notification`, err); log.error(`Error with notification`, err);
return reject(err); return reject(err);
} }
return resolve(true); return resolve(true);
}); });
} catch (err) { } catch (err) {
gui.notifierWorking = false;
//notify-send is not found //notify-send is not found
//determine an alternate for raspian //determine an alternate for raspian
//this feels like a hack //this feels like a hack