Add some additional logging to docs plugin installer

This commit is contained in:
Adomas Venčkauskas 2017-07-22 17:28:15 +03:00
parent 225215842d
commit 0ceb5ec9a9

View file

@ -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);