mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Show fallback bar on unhandled rejections
This commit is contained in:
parent
ce218d021f
commit
23ea9d879d
1 changed files with 2 additions and 2 deletions
|
@ -748,8 +748,8 @@ var Promise = PDFJS.Promise = (function PromiseClosure() {
|
|||
var now = Date.now();
|
||||
for (var i = 0; i < this.unhandledRejections.length; i++) {
|
||||
if (now - this.unhandledRejections[i].time > REJECTION_TIMEOUT) {
|
||||
console.error('Unhandled rejection: ' +
|
||||
this.unhandledRejections[i].promise._value);
|
||||
warn('Unhandled rejection: ' +
|
||||
this.unhandledRejections[i].promise._value);
|
||||
this.unhandledRejections.splice(i);
|
||||
i--;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue