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:
parent
56b6a0d021
commit
53d2aa43d6
2 changed files with 5 additions and 1 deletions
|
@ -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();
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue