Skip to content

Commit

Permalink
Add some additional logging to docs plugin installer
Browse files Browse the repository at this point in the history
  • Loading branch information
adomasven committed Jul 22, 2017
1 parent 2252158 commit 0ceb5ec
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions resource/word-processor-plugin-installer.js
Expand Up @@ -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);
Expand Down

0 comments on commit 0ceb5ec

Please sign in to comment.