mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 09:20:06 +02:00
Add the docBaseUrl
API parameter to AppOptions
in the viewer
This unfortunately required a bit of special handling, to correctly deal with the various extension builds.
This commit is contained in:
parent
0cc0789af3
commit
ba2c042a75
2 changed files with 19 additions and 7 deletions
|
@ -105,6 +105,9 @@ const defaultOptions = {
|
|||
value: false,
|
||||
kind: OptionKind.VIEWER + OptionKind.PREFERENCE,
|
||||
},
|
||||
/**
|
||||
* The `printResolution` is, conditionally, defined below.
|
||||
*/
|
||||
renderer: {
|
||||
/** @type {string} */
|
||||
value: 'canvas',
|
||||
|
@ -183,6 +186,11 @@ const defaultOptions = {
|
|||
value: false,
|
||||
kind: OptionKind.API + OptionKind.PREFERENCE,
|
||||
},
|
||||
docBaseUrl: {
|
||||
/** @type {string} */
|
||||
value: '',
|
||||
kind: OptionKind.API,
|
||||
},
|
||||
isEvalSupported: {
|
||||
/** @type {boolean} */
|
||||
value: true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue