mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 11:50:00 +00:00
Fixed mistake that happens when no type is given
This commit is contained in:
parent
f931316dc8
commit
5a612e792e
@ -94,8 +94,8 @@ Module.register('alert',{
|
||||
|
||||
},
|
||||
notificationReceived: function(notification, payload, sender) {
|
||||
if (typeof payload.type === 'undefined') { payload.type = "alert"; }
|
||||
if (notification === 'SHOW_ALERT') {
|
||||
if (typeof payload.type === 'undefined') { payload.type = "alert"; }
|
||||
if (payload.type == "alert"){
|
||||
this.show_alert(payload, sender)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user