mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Local nodes loaded with node-red as their module
This commit is contained in:
parent
9552055b08
commit
50fddf474b
@ -567,7 +567,7 @@ function load(defaultNodesDir,disableNodePathScan) {
|
|||||||
var nodes = [];
|
var nodes = [];
|
||||||
nodeFiles.forEach(function(file) {
|
nodeFiles.forEach(function(file) {
|
||||||
try {
|
try {
|
||||||
nodes.push(loadNodeConfig(file));
|
nodes.push(loadNodeConfig(file,"node-red",path.basename(file).replace(/^\d+-/,"").replace(/\.js$/,"")));
|
||||||
} catch(err) {
|
} catch(err) {
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user