mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
fixed comments from @knolleary
This commit is contained in:
@@ -158,7 +158,13 @@ module.exports = function(RED) {
|
||||
},
|
||||
env: {
|
||||
get: function(envVar) {
|
||||
return node.getenv(envVar);
|
||||
if (node && node._flow) {
|
||||
var flow = node._flow;
|
||||
if (flow) {
|
||||
return flow.getSetting(envVar);
|
||||
}
|
||||
}
|
||||
return process.env[envVar];
|
||||
}
|
||||
},
|
||||
setTimeout: function () {
|
||||
|
Reference in New Issue
Block a user