mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Merge pull request #14453 from Snuffleupagus/viewer-documenterror
Dispatch a "documenterror" event in `PDFViewerApplication._documentError` (issue 14451)
This commit is contained in:
commit
78f160b656
1 changed files with 6 additions and 0 deletions
|
@ -1057,6 +1057,12 @@ const PDFViewerApplication = {
|
|||
this._unblockDocumentLoadEvent();
|
||||
|
||||
this._otherError(message, moreInfo);
|
||||
|
||||
this.eventBus.dispatch("documenterror", {
|
||||
source: this,
|
||||
message,
|
||||
reason: moreInfo?.message ?? null,
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue