www

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

commit aeaa0d12c72e8a1befdb22d8f526c61daacb85b7
parent 6d07cb44dfabc4544adedb8ca96b2ca6648ab2e8
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sun, 20 Nov 2016 01:31:47 -0500

Avoid console error if page closed before translators are available

Was showing up in some test runs

Diffstat:
Mchrome/content/zotero/browser.js | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/chrome/content/zotero/browser.js b/chrome/content/zotero/browser.js @@ -980,6 +980,7 @@ Zotero_Browser.Tab.prototype._selectItems = function(obj, itemList, callback) { */ Zotero_Browser.Tab.prototype._translatorsAvailable = Zotero.Promise.coroutine(function* (translate, translators) { var page = this.getPageObject(); + if (!page) return; page.saveEnabled = true; if(translators && translators.length) {