Skip to content

Commit

Permalink
Merge pull request #5371 from Snuffleupagus/disableAutoFetch-regression
Browse files Browse the repository at this point in the history
Fix disableAutoFetch regression in the generic viewer
  • Loading branch information
yurydelendik committed Oct 1, 2014
2 parents 2b8ff7b + cb3e590 commit dc30dba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ var WorkerMessageHandler = PDFJS.WorkerMessageHandler = {
}
},

onProgressiveData: PDFJS.disableStream ? null :
onProgressiveData: source.disableStream ? null :
function onProgressiveData(chunk) {
if (!pdfManager) {
cachedChunks.push(chunk);
Expand Down
1 change: 1 addition & 0 deletions src/display/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -1076,6 +1076,7 @@ var WorkerTransport = (function WorkerTransportClosure() {

fetchDocument: function WorkerTransport_fetchDocument(source) {
source.disableAutoFetch = PDFJS.disableAutoFetch;
source.disableStream = PDFJS.disableStream;
source.chunkedViewerLoading = !!this.pdfDataRangeTransport;
this.messageHandler.send('GetDocRequest', {
source: source,
Expand Down

0 comments on commit dc30dba

Please sign in to comment.