mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 03:39:55 +00:00
No type = alert
This commit is contained in:
parent
e323a315e1
commit
f931316dc8
@ -78,7 +78,7 @@ self.sendNotification("SHOW_ALERT", {type: "notification"});
|
||||
For alerts use:
|
||||
|
||||
```
|
||||
self.sendNotification("SHOW_ALERT", {type: "alert"});
|
||||
self.sendNotification("SHOW_ALERT", {});
|
||||
```
|
||||
|
||||
### Notification params
|
||||
|
@ -94,6 +94,7 @@ Module.register('alert',{
|
||||
|
||||
},
|
||||
notificationReceived: function(notification, payload, sender) {
|
||||
if (typeof payload.type === 'undefined') { payload.type = "alert"; }
|
||||
if (notification === 'SHOW_ALERT') {
|
||||
if (payload.type == "alert"){
|
||||
this.show_alert(payload, sender)
|
||||
|
Loading…
x
Reference in New Issue
Block a user