mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 01:35:43 +02:00
Move the defaultUrl
parameter from the appConfig
and into AppOptions
instead
The `appConfig` contains (mostly) references to various DOM elements, used when initializing the viewer components. Hence `defaultUrl` seem like a slightly better fit for the new `AppOptions` abstraction, not to mention that it should thus be easier to set/modify it for custom deployments of the default viewer.
This commit is contained in:
parent
81c550903f
commit
57165afb08
3 changed files with 15 additions and 7 deletions
|
@ -27,6 +27,11 @@ const OptionKind = {
|
|||
* compare with the format of `default_preferences.json`.
|
||||
*/
|
||||
const defaultOptions = {
|
||||
defaultUrl: {
|
||||
/** @type {string} */
|
||||
value: 'compressed.tracemonkey-pldi-09.pdf',
|
||||
kind: OptionKind.VIEWER,
|
||||
},
|
||||
defaultZoomValue: {
|
||||
/** @type {string} */
|
||||
value: '',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue