Merge pull request #5371 from Snuffleupagus/disableAutoFetch-regression
Fix disableAutoFetch regression in the generic viewer
This commit is contained in:
commit
dc30dba760
@ -138,7 +138,7 @@ var WorkerMessageHandler = PDFJS.WorkerMessageHandler = {
|
||||
}
|
||||
},
|
||||
|
||||
onProgressiveData: PDFJS.disableStream ? null :
|
||||
onProgressiveData: source.disableStream ? null :
|
||||
function onProgressiveData(chunk) {
|
||||
if (!pdfManager) {
|
||||
cachedChunks.push(chunk);
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user