Fix "Report Errors…" button in Utilities.Internal.errorPrompt() prompt

E.g., the button in an unknown WebDAV error dialog
This commit is contained in:
Dan Stillman 2019-12-16 04:33:20 -05:00
parent 88c4cd1a09
commit 537aa15842

View file

@ -398,7 +398,9 @@ Zotero.Utilities.Internal = {
if (typeof buttonText == 'undefined') {
buttonText = Zotero.getString('errorReport.reportError');
buttonCallback = function () {
win.ZoteroPane.reportErrors();
var zp = Zotero.getActiveZoteroPane();
// TODO: Open main window if closed
if (zp) zp.reportErrors();
}
}
// If secondary button is explicitly null, just use an alert