Skip to content
This repository has been archived by the owner on Mar 23, 2019. It is now read-only.

Commit

Permalink
Set 'disable range requests' to true
Browse files Browse the repository at this point in the history
This appears to fix the 'Bad end offset errors' when loading some PDFs.
See mozilla#7616
Fix brave/browser-laptop#10867
  • Loading branch information
diracdeltas committed Sep 12, 2017
1 parent a7a8e3e commit b119354
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/display/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,7 @@ PDFJS.workerPort = (PDFJS.workerPort === undefined ? null : PDFJS.workerPort);
* Enabled (false) by default.
* @var {boolean}
*/
PDFJS.disableRange = (PDFJS.disableRange === undefined ?
false : PDFJS.disableRange);
PDFJS.disableRange = true;

/**
* Disable streaming of PDF file data. By default PDF.js attempts to load PDF
Expand Down

0 comments on commit b119354

Please sign in to comment.