Merge pull request #14453 from Snuffleupagus/viewer-documenterror
Dispatch a "documenterror" event in `PDFViewerApplication._documentError` (issue 14451)
This commit is contained in:
commit
78f160b656
@ -1057,6 +1057,12 @@ const PDFViewerApplication = {
|
|||||||
this._unblockDocumentLoadEvent();
|
this._unblockDocumentLoadEvent();
|
||||||
|
|
||||||
this._otherError(message, moreInfo);
|
this._otherError(message, moreInfo);
|
||||||
|
|
||||||
|
this.eventBus.dispatch("documenterror", {
|
||||||
|
source: this,
|
||||||
|
message,
|
||||||
|
reason: moreInfo?.message ?? null,
|
||||||
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user