1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Add RED._debug

This commit is contained in:
Nick O'Leary 2014-05-13 00:00:17 +01:00
parent b29e434449
commit 59eccb116a

View File

@ -115,7 +115,14 @@
var sbc = document.getElementById("debug-content"); var sbc = document.getElementById("debug-content");
var messageCount = 0; var messageCount = 0;
RED._debug = function(msg) {
handleDebugMessage("",{
name:"debug",
msg:msg
});
}
var handleDebugMessage = function(t,o) { var handleDebugMessage = function(t,o) {
var msg = document.createElement("div"); var msg = document.createElement("div");
msg.onmouseover = function() { msg.onmouseover = function() {