Fix startup with debug log pref enabled on Windows

I don't know how I possibly ended up with sendConsoleAPIMessage()
here...
This commit is contained in:
Dan Stillman 2014-03-19 05:42:28 -04:00
parent d7c9b7d55d
commit d7b75aaa80

View file

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