mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 02:05:37 +02:00
Merge pull request #9689 from RafaPolit/master
Fixed critical unhandled promise that prevented error catching using API
This commit is contained in:
commit
3ac638fad3
1 changed files with 1 additions and 1 deletions
|
@ -2457,7 +2457,7 @@ var InternalRenderTask = (function InternalRenderTaskClosure() {
|
||||||
if (this.useRequestAnimationFrame && typeof window !== 'undefined') {
|
if (this.useRequestAnimationFrame && typeof window !== 'undefined') {
|
||||||
window.requestAnimationFrame(this._nextBound);
|
window.requestAnimationFrame(this._nextBound);
|
||||||
} else {
|
} 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