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

Adds optional callback to env.get in function node

This commit is contained in:
Nick O'Leary 2023-06-21 14:20:23 +01:00
parent 502dacd865
commit 3f604e9d93
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -235,8 +235,8 @@ module.exports = function(RED) {
}
},
env: {
get: function(envVar) {
return RED.util.getSetting(node, envVar);
get: function(envVar, callback) {
return RED.util.getSetting(node, envVar, node._flow, callback);
}
},
setTimeout: function () {