1
0
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:
Nick O'Leary 2017-04-22 09:03:52 +01:00
parent 4ea33ea482
commit b6510d66e0
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -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) {