diff --git a/nodes/core/storage/28-tail.js b/nodes/core/storage/28-tail.js index c879943c9..aa9b040aa 100644 --- a/nodes/core/storage/28-tail.js +++ b/nodes/core/storage/28-tail.js @@ -32,7 +32,7 @@ module.exports = function(RED) { var msg = {topic:node.filename}; if (node.split) { var strings = data.toString().split("\n"); - for (s in strings) { + for (var s in strings) { if (strings[s] != "") { msg.payload = strings[s]; node.send(msg);