mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Add initial support for ThemePlugins
This commit is contained in:
@@ -24,6 +24,9 @@ function registerPlugin(nodeSetId,id,definition) {
|
||||
pluginToId[id] = nodeSetId;
|
||||
plugins[id] = definition;
|
||||
var module = registry.getModule(moduleId);
|
||||
|
||||
definition.path = module.path;
|
||||
|
||||
module.plugins[pluginId].plugins.push(definition);
|
||||
if (definition.type) {
|
||||
pluginsByType[definition.type] = pluginsByType[definition.type] || [];
|
||||
|
Reference in New Issue
Block a user