mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 11:50:00 +00:00
Merge pull request #132 from paviro/v2-beta
Fixed mistake that happens when no type is given
This commit is contained in:
commit
864106d336
@ -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