mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Merge pull request #8596 from mukulmishra18/proper-read-result
Fixes wrong structure of fullReader.read() result.
This commit is contained in:
commit
b3bac5100c
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue