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:
@@ -372,10 +372,10 @@ class Subflow extends Flow {
|
||||
}
|
||||
const node = this.subflowInstance;
|
||||
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