Fixed node not showing up in pallete.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
RED.nodes.registerType("advanced-reactor",{
|
RED.nodes.registerType("advanced-reactor", {
|
||||||
category: 'wbd typical',
|
category: 'WWTP',
|
||||||
color: '#c4cce0',
|
color: '#c4cce0',
|
||||||
defaults: {
|
defaults: {
|
||||||
name: {value:""}
|
name: {value:""}
|
||||||
@@ -4,6 +4,11 @@ module.exports = function(RED) {
|
|||||||
var node = this;
|
var node = this;
|
||||||
|
|
||||||
let name = config.name;
|
let name = config.name;
|
||||||
|
|
||||||
|
node.on('input', function(msg) {
|
||||||
|
msg.payload = msg.payload.toLowerCase();
|
||||||
|
node.send(msg);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
RED.nodes.registerType("advanced-reactor", reactor);
|
RED.nodes.registerType("advanced-reactor", reactor);
|
||||||
}
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user