Merge pull request #14453 from Snuffleupagus/viewer-documenterror

Dispatch a "documenterror" event in `PDFViewerApplication._documentError` (issue 14451)
This commit is contained in:
Tim van der Meij 2022-01-15 14:00:16 +01:00 committed by GitHub
commit 78f160b656
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1057,6 +1057,12 @@ const PDFViewerApplication = {
this._unblockDocumentLoadEvent();
this._otherError(message, moreInfo);
this.eventBus.dispatch("documenterror", {
source: this,
message,
reason: moreInfo?.message ?? null,
});
},
/**