www

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

commit a4afb8c0c35d466ac5f10f6eb1d06540963efb54
parent 8383c5cda891bd1e7699c5763b129c0ed2b7dfa5
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue, 22 Nov 2016 03:41:15 -0500

Wrap another showZoteroPaneProgressMeter call in a try/catch for safety

Diffstat:
Mchrome/content/zotero/xpcom/zotero.js | 13++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js @@ -570,9 +570,16 @@ Components.utils.import("resource://gre/modules/osfile.jsm"); try { var updated = yield Zotero.Schema.updateSchema({ - onBeforeUpdate: () => Zotero.showZoteroPaneProgressMeter( - Zotero.getString('upgrade.status') - ) + onBeforeUpdate: () => { + try { + Zotero.showZoteroPaneProgressMeter( + Zotero.getString('upgrade.status') + ) + } + catch (e) { + Zotero.logError(e); + } + } }); } catch (e) {