mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 10:15:37 +02:00
Move the disableAutoFetch
option from the global PDFJS
object and into getDocument
instead
One additional complication with removing this option from the global `PDFJS` object, is that the viewer currently needs to check `disableAutoFetch` in a couple of places. To address this I'm thus proposing adding a getter in `PDFDocumentProxy`, to allow checking the *actually* used values for a particular `getDocument` invocation.
This commit is contained in:
parent
c7c583583b
commit
69d7191034
7 changed files with 38 additions and 22 deletions
|
@ -336,8 +336,6 @@ function getDefaultSetting(id) {
|
|||
switch (id) {
|
||||
case 'pdfBug':
|
||||
return globalSettings ? globalSettings.pdfBug : false;
|
||||
case 'disableAutoFetch':
|
||||
return globalSettings ? globalSettings.disableAutoFetch : false;
|
||||
case 'disableStream':
|
||||
return globalSettings ? globalSettings.disableStream : false;
|
||||
case 'disableRange':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue