mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 09:20:06 +02:00
Move the disableRange
option from the global PDFJS
object and into getDocument
instead
This commit is contained in:
parent
69d7191034
commit
b69abf1111
6 changed files with 19 additions and 16 deletions
|
@ -13,6 +13,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { apiCompatibilityParams } from 'pdfjs-lib';
|
||||
import { viewerCompatibilityParams } from './viewer_compatibility';
|
||||
|
||||
const OptionKind = {
|
||||
|
@ -149,6 +150,11 @@ const defaultOptions = {
|
|||
value: false,
|
||||
kind: OptionKind.API,
|
||||
},
|
||||
disableRange: {
|
||||
/** @type {boolean} */
|
||||
value: apiCompatibilityParams.disableRange || false,
|
||||
kind: OptionKind.API,
|
||||
},
|
||||
isEvalSupported: {
|
||||
/** @type {boolean} */
|
||||
value: true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue