better escape for node-red without done.

This commit is contained in:
Dave Conway-Jones
2019-09-26 13:39:25 +01:00
parent 1f0ab0937d
commit a318dc56ff
2 changed files with 2 additions and 2 deletions

View File

@@ -77,7 +77,7 @@ module.exports = function(RED) {
this.on("input", function(msg, send, done) {
if (msg.hasOwnProperty("payload")) {
send = send || node.send;
send = send || function() { node.send.apply(node,arguments) };
if (smtpTransport) {
node.status({fill:"blue",shape:"dot",text:"email.status.sending"});
if (msg.to && node.name && (msg.to !== node.name)) {