mirror of
https://github.com/lasthead0/yandex2mqtt.git
synced 2025-08-07 16:50:30 +03:00
Merge pull request #6 from scart--/master
Prevent exception when notification array not specified
This commit is contained in:
2
app.js
2
app.js
@@ -20,6 +20,8 @@ const passport = require('passport');
|
|||||||
const mqtt = require('mqtt');
|
const mqtt = require('mqtt');
|
||||||
/* */
|
/* */
|
||||||
const config = require('./config');
|
const config = require('./config');
|
||||||
|
config.notification = config.notification || [];
|
||||||
|
|
||||||
const Device = require('./device');
|
const Device = require('./device');
|
||||||
|
|
||||||
/* */
|
/* */
|
||||||
|
Reference in New Issue
Block a user