www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit d7b75aaa80f494e58105d8b1b697f9a3d10f701d
parent d7c9b7d55dadde4fa226e9737f2ce9fb92fa1a12
Author: Dan Stillman <dstillman@zotero.org>
Date:   Wed, 19 Mar 2014 05:42:28 -0400

Fix startup with debug log pref enabled on Windows

I don't know how I possibly ended up with sendConsoleAPIMessage()
here...

Diffstat:
Mchrome/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 @@ -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 {