From 0ceb5ec9a9c23420afb57152325142ec754af304 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Sat, 22 Jul 2017 17:28:15 +0300 Subject: [PATCH] Add some additional logging to docs plugin installer --- resource/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 index c0c0e4c79..0b63bf652 100644 --- 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);