Show fallback bar on unhandled rejections
This commit is contained in:
parent
ce218d021f
commit
23ea9d879d
@ -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…
Reference in New Issue
Block a user