fixed comments from @knolleary

This commit is contained in:
Hiroyasu Nishiyama
2019-01-28 22:14:08 +09:00
parent 2b43e3ee23
commit f88a4b1791
8 changed files with 76 additions and 97 deletions

View File

@@ -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 () {