mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Update debug node to register the settings it uses
This commit is contained in:
parent
4ea33ea482
commit
b6510d66e0
@ -74,7 +74,16 @@ module.exports = function(RED) {
|
||||
});
|
||||
}
|
||||
|
||||
RED.nodes.registerType("debug",DebugNode);
|
||||
RED.nodes.registerType("debug",DebugNode, {
|
||||
settings: {
|
||||
debugUseColors: {
|
||||
value: false,
|
||||
},
|
||||
debugMaxLength: {
|
||||
value: 1000,
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
function sendDebug(msg) {
|
||||
if (msg.msg instanceof Error) {
|
||||
|
Loading…
Reference in New Issue
Block a user