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

add lables to daemon node

This commit is contained in:
Dave Conway-Jones 2017-01-29 17:46:50 +00:00
parent 316a2fd272
commit faba134e42
2 changed files with 3 additions and 1 deletions

View File

@ -59,6 +59,7 @@
}, },
inputs:1, inputs:1,
outputs:3, outputs:3,
outputLabels: ["stdout","stderr","exit code"],
icon: "arrow-in.png", icon: "arrow-in.png",
align: "right", align: "right",
label: function() { label: function() {

View File

@ -46,7 +46,8 @@ module.exports = function(RED) {
node.send([{payload:bits.shift()},null,null]); node.send([{payload:bits.shift()},null,null]);
} }
line = bits[0]; line = bits[0];
} else { }
else {
if (data && (data.length !== 0)) { if (data && (data.length !== 0)) {
node.send([{payload:data},null,null]); node.send([{payload:data},null,null]);
} }