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:
parent
d7c9b7d55d
commit
d7b75aaa80
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue