Skip to content

Commit

Permalink
fix:non-object payload issue
Browse files Browse the repository at this point in the history
  • Loading branch information
eouia committed May 20, 2019
1 parent e91fc99 commit 7ff0033
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MMM-GroveGestures.js
Expand Up @@ -197,7 +197,7 @@ Module.register("MMM-GroveGestures", {
if (command.hasOwnProperty("notificationExec")) {
var noti = (command.notificationExec.notification) ? command.notificationExec.notification : this.config.defaultNotification
var payload = (typeof command.notificationExec.payload == "undefined") ? gestures : command.notificationExec.payload
this.sendNotification(noti, Object.assign({}, payload))
this.sendNotification(noti, payload)
}
this.cancelCommand()
},
Expand Down

0 comments on commit 7ff0033

Please sign in to comment.