From d7b75aaa80f494e58105d8b1b697f9a3d10f701d Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 19 Mar 2014 05:42:28 -0400 Subject: [PATCH] Fix startup with debug log pref enabled on Windows I don't know how I possibly ended up with sendConsoleAPIMessage() here... --- chrome/content/zotero/xpcom/debug.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/debug.js b/chrome/content/zotero/xpcom/debug.js index 0ba33a8de..b7352b2cb 100644 --- a/chrome/content/zotero/xpcom/debug.js +++ b/chrome/content/zotero/xpcom/debug.js @@ -111,8 +111,8 @@ Zotero.Debug = new function () { // // TODO: Get rid of the filename and line number if (Zotero.isWin && !Zotero.isStandalone) { - const consoleJSM = Components.utils.import("resource://gre/modules/devtools/Console.jsm", {}); - consoleJSM.console.sendConsoleAPIMessage(output); + let console = Components.utils.import("resource://gre/modules/devtools/Console.jsm", {}).console; + console.log(output); } // Otherwise dump to the text console else {