1
0
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:
Anna Thomas 2014-11-20 09:58:42 +00:00
parent 9552055b08
commit 50fddf474b

View File

@ -567,7 +567,7 @@ function load(defaultNodesDir,disableNodePathScan) {
var nodes = [];
nodeFiles.forEach(function(file) {
try {
nodes.push(loadNodeConfig(file));
nodes.push(loadNodeConfig(file,"node-red",path.basename(file).replace(/^\d+-/,"").replace(/\.js$/,"")));
} catch(err) {
//
}