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:
Jonas Jenwald 2018-02-17 23:25:23 +01:00
parent 81c550903f
commit 57165afb08
3 changed files with 15 additions and 7 deletions

View file

@ -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: '',