www

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

commit 53d2aa43d6ac8d19452ce0d7ebfb34b00f5ee693
parent 56b6a0d02149c548284178cde5017bde93cd4401
Author: Dan Stillman <dstillman@zotero.org>
Date:   Wed,  4 Jan 2017 19:14:07 -0500

Allow showing the Tools -> Error Console menu option via a pref

If devtools.errorconsole.enabled is true, the option will be shown.

Diffstat:
Mchrome/content/zotero/standalone/standalone.js | 4++++
Mchrome/content/zotero/standalone/standalone.xul | 2+-
2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/chrome/content/zotero/standalone/standalone.js b/chrome/content/zotero/standalone/standalone.js @@ -43,6 +43,10 @@ const ZoteroStandalone = new function() { return Zotero.initializationPromise; }) .then(function () { + if (Zotero.Prefs.get('devtools.errorconsole.enabled', true)) { + document.getElementById('menu_errorConsole').hidden = false; + } + Zotero.hideZoteroPaneOverlays(); ZoteroPane.init(); ZoteroPane.makeVisible(); diff --git a/chrome/content/zotero/standalone/standalone.xul b/chrome/content/zotero/standalone/standalone.xul @@ -169,7 +169,7 @@ <menuseparator/> <menuitem id="menu_addons" label="&addons.label;" oncommand="Zotero.openInViewer('chrome://mozapps/content/extensions/extensions.xul', ZoteroStandalone.updateAddonsPane)"/> - <!--<menuitem label="Error Console" oncommand="toJavaScriptConsole()"/>--> + <menuitem id="menu_errorConsole" label="Error Console" oncommand="toJavaScriptConsole()" hidden="true"/> </menupopup> </menu>