Browse Source

Fixes wrong structure of fullReader.read() result.

Mukul Mishra 8 years ago
parent
commit
308a83e5ca
  1. 2
      src/core/network.js

2
src/core/network.js

@ -491,7 +491,7 @@ PDFNetworkStreamFullRequestReader.prototype = { @@ -491,7 +491,7 @@ PDFNetworkStreamFullRequestReader.prototype = {
}
if (this._cachedChunks.length > 0) {
var chunk = this._cachedChunks.shift();
return Promise.resolve(chunk);
return Promise.resolve({ value: chunk, done: false, });
}
if (this._done) {
return Promise.resolve({ value: undefined, done: true, });

Loading…
Cancel
Save