mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-23 00:28:06 +02:00
Fixed critical unhandled promise that prevented error catching using API
This commit is contained in:
parent
c5c06bf5c4
commit
d63b17dbe3
1 changed files with 1 additions and 1 deletions
|
@ -2453,7 +2453,7 @@ var InternalRenderTask = (function InternalRenderTaskClosure() {
|
|||
if (this.useRequestAnimationFrame && typeof window !== 'undefined') {
|
||||
window.requestAnimationFrame(this._nextBound);
|
||||
} else {
|
||||
Promise.resolve(undefined).then(this._nextBound);
|
||||
Promise.resolve().then(this._nextBound).catch(this.callback);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue