mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
add NR_ prefix to special environment variables
This commit is contained in:
@@ -523,10 +523,10 @@ function setObjectProperty(msg,prop,value,createMissing) {
|
||||
*/
|
||||
function getSetting(node, name, flow_) {
|
||||
if (node) {
|
||||
if (name === "NODE_NAME") {
|
||||
if (name === "NR_NODE_NAME") {
|
||||
return node.name;
|
||||
}
|
||||
if (name === "NODE_ID") {
|
||||
if (name === "NR_NODE_ID") {
|
||||
return node.id;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user