mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Enable range requests in master mode.
This commit is contained in:
parent
077f08fa6d
commit
e697c598c2
1 changed files with 2 additions and 3 deletions
|
@ -133,9 +133,8 @@ function nextTask() {
|
|||
nextPage(task, failure);
|
||||
}
|
||||
|
||||
// When generating reference images in masterMode, disable range requests
|
||||
PDFJS.disableRange = task.disableRange || masterMode;
|
||||
PDFJS.disableAutoFetch = !task.enableAutoFetch || masterMode;
|
||||
PDFJS.disableRange = task.disableRange;
|
||||
PDFJS.disableAutoFetch = !task.enableAutoFetch;
|
||||
try {
|
||||
var promise = PDFJS.getDocument({
|
||||
url: absoluteUrl,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue