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

If devtools.errorconsole.enabled is true, the option will be shown.
This commit is contained in:
Dan Stillman 2017-01-04 19:14:07 -05:00
parent 56b6a0d021
commit 53d2aa43d6
2 changed files with 5 additions and 1 deletions

View file

@ -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();

View file

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