www

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

commit 0ceb5ec9a9c23420afb57152325142ec754af304
parent 225215842dbdde93d05236bbf7e5008004714c74
Author: Adomas VenĨkauskas <adomas.ven@gmail.com>
Date:   Sat, 22 Jul 2017 17:28:15 +0300

Add some additional logging to docs plugin installer

Diffstat:
Mresource/word-processor-plugin-installer.js | 9+++++++--
1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/resource/word-processor-plugin-installer.js b/resource/word-processor-plugin-installer.js @@ -212,8 +212,13 @@ ZoteroPluginInstaller.prototype = { Zotero.getString('zotero.preferences.wordProcessors.reinstall', this._addon.APP) : Zotero.getString('zotero.preferences.wordProcessors.install', this._addon.APP))); button.addEventListener("command", function() { - var zpi = new ZoteroPluginInstaller(addon, false, true); - zpi.showPreferences(document); + Zotero.debug(`Install button pressed for ${addon.APP} plugin`); + try { + var zpi = new ZoteroPluginInstaller(addon, false, true); + zpi.showPreferences(document); + } catch (e) { + Zotero.logError(e); + } }, false); hbox.appendChild(button); groupbox.appendChild(hbox);