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:
parent
502dacd865
commit
3f604e9d93
@ -235,8 +235,8 @@ module.exports = function(RED) {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
env: {
|
env: {
|
||||||
get: function(envVar) {
|
get: function(envVar, callback) {
|
||||||
return RED.util.getSetting(node, envVar);
|
return RED.util.getSetting(node, envVar, node._flow, callback);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
setTimeout: function () {
|
setTimeout: function () {
|
||||||
|
Loading…
Reference in New Issue
Block a user