Set browser.dom.window.dump.enabled to true if debug output enabled

dump() works regardless within XPCOM (which is how Zotero.debug()
works), but not on window objects without this pref
This commit is contained in:
Dan Stillman 2017-01-04 17:28:46 -05:00
parent 612066d749
commit 56b6a0d021

View file

@ -49,6 +49,8 @@ Zotero.Debug = new function () {
this.storing = _store;
this.enabled = _console || _store;
Zotero.Prefs.set('browser.dom.window.dump.enabled', _console, true);
}
this.log = function (message, level, stack) {