1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00

Forced payload to be strings for Prowl node

Fixes #26
This commit is contained in:
Dave C-J 2014-02-08 13:31:00 +00:00
parent b1f9a3ce5e
commit b1b230eb37

View File

@ -47,6 +47,7 @@ function ProwlNode(n) {
if (typeof(msg.payload) == 'object') {
msg.payload = JSON.stringify(msg.payload);
}
else { msg.payload = msg.payload.toString(); }
if (pushkey) {
try {
prowl.push(msg.payload, titl, { priority: pri }, function(err, remaining) {