From 4b99c3d6a0efca79d94fc29398f0eab1fd75d492 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Thu, 5 May 2011 12:27:10 +0200 Subject: Make my console.myDebug configurable via about:config preference. That is the Boolean variable bugzilla-triage.setting.debug --- data/lib/bzpage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'data/lib/bzpage.js') diff --git a/data/lib/bzpage.js b/data/lib/bzpage.js index d957bd3..296fe29 100644 --- a/data/lib/bzpage.js +++ b/data/lib/bzpage.js @@ -22,7 +22,7 @@ var equivalentComponents = null; * central handler processing messages from the main script. */ self.on('message', function onMessage(msg) { - console.log("onMessage - incoming : msg.cmd = " + msg.cmd); + console.myDebug("onMessage - incoming : msg.cmd = " + msg.cmd); switch (msg.cmd) { case "ReloadThePage": document.location.reload(true); @@ -80,7 +80,7 @@ function executeCommand(cmdObj) { * Object with the appropriate parameters for the command */ function centralCommandDispatch (cmdLabel, cmdParams) { - console.log("centralCommandDispatch : cmdLabel = " + cmdLabel); + console.myDebug("centralCommandDispatch : cmdLabel = " + cmdLabel); switch (cmdLabel) { case "name": case "position": -- cgit