mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 10:15:37 +02:00
Merge pull request #3343 from brendandahl/remove-timeout
Removed unneeded timeout.
This commit is contained in:
commit
c19f0c4127
1 changed files with 1 additions and 9 deletions
10
src/api.js
10
src/api.js
|
@ -351,17 +351,9 @@ var PDFPageProxy = (function PDFPageProxyClosure() {
|
||||||
var self = this;
|
var self = this;
|
||||||
this.operatorList = operatorList;
|
this.operatorList = operatorList;
|
||||||
|
|
||||||
var displayContinuation = function pageDisplayContinuation() {
|
|
||||||
// Always defer call to display() to work around bug in
|
|
||||||
// Firefox error reporting from XHR callbacks.
|
|
||||||
setTimeout(function pageSetTimeout() {
|
|
||||||
self.displayReadyPromise.resolve();
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
this.ensureFonts(fonts,
|
this.ensureFonts(fonts,
|
||||||
function pageStartRenderingFromOperatorListEnsureFonts() {
|
function pageStartRenderingFromOperatorListEnsureFonts() {
|
||||||
displayContinuation();
|
self.displayReadyPromise.resolve();
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue