From 50fddf474b5d8f4bcd8bc5437c8c3de289335763 Mon Sep 17 00:00:00 2001 From: Anna Thomas Date: Thu, 20 Nov 2014 09:58:42 +0000 Subject: [PATCH] Local nodes loaded with node-red as their module --- red/nodes/registry.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/red/nodes/registry.js b/red/nodes/registry.js index 7dc7d7f0b..57a15faa3 100644 --- a/red/nodes/registry.js +++ b/red/nodes/registry.js @@ -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) { // }