From 5bbd5f0f70c00cc9c617e70c4f2008e05ad046d8 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Mon, 10 Mar 2014 12:34:46 -0400 Subject: [PATCH] Don't use browser console for logging in Zotero Standalone This is probably what caused zotero/provo#5 --- chrome/content/zotero/xpcom/debug.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/debug.js b/chrome/content/zotero/xpcom/debug.js index 4bfef5ae0..0ba33a8de 100644 --- a/chrome/content/zotero/xpcom/debug.js +++ b/chrome/content/zotero/xpcom/debug.js @@ -110,7 +110,7 @@ Zotero.Debug = new function () { // log to the Browser Console instead // // TODO: Get rid of the filename and line number - if (Zotero.isWin) { + if (Zotero.isWin && !Zotero.isStandalone) { const consoleJSM = Components.utils.import("resource://gre/modules/devtools/Console.jsm", {}); consoleJSM.console.sendConsoleAPIMessage(output); }