Removed unneeded timeout.
This commit is contained in:
parent
ccdff648f1
commit
b189749b4a
10
src/api.js
10
src/api.js
@ -350,17 +350,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…
Reference in New Issue
Block a user