Add some additional logging to docs plugin installer
This commit is contained in:
parent
225215842d
commit
0ceb5ec9a9
|
@ -212,8 +212,13 @@ ZoteroPluginInstaller.prototype = {
|
||||||
Zotero.getString('zotero.preferences.wordProcessors.reinstall', this._addon.APP) :
|
Zotero.getString('zotero.preferences.wordProcessors.reinstall', this._addon.APP) :
|
||||||
Zotero.getString('zotero.preferences.wordProcessors.install', this._addon.APP)));
|
Zotero.getString('zotero.preferences.wordProcessors.install', this._addon.APP)));
|
||||||
button.addEventListener("command", function() {
|
button.addEventListener("command", function() {
|
||||||
var zpi = new ZoteroPluginInstaller(addon, false, true);
|
Zotero.debug(`Install button pressed for ${addon.APP} plugin`);
|
||||||
zpi.showPreferences(document);
|
try {
|
||||||
|
var zpi = new ZoteroPluginInstaller(addon, false, true);
|
||||||
|
zpi.showPreferences(document);
|
||||||
|
} catch (e) {
|
||||||
|
Zotero.logError(e);
|
||||||
|
}
|
||||||
}, false);
|
}, false);
|
||||||
hbox.appendChild(button);
|
hbox.appendChild(button);
|
||||||
groupbox.appendChild(hbox);
|
groupbox.appendChild(hbox);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user