Move the cursorToolOnLoad preference handling into AppOptions (PR 9493 follow-up)

Since no other viewer component is currently reading preferences itself, this patch thus unifies the behaviour across the viewer.
This commit is contained in:
Jonas Jenwald 2018-03-19 23:24:56 +01:00
parent 6db9c3cb49
commit c2f1523f06
3 changed files with 16 additions and 7 deletions

View file

@ -28,6 +28,11 @@ const OptionKind = {
* compare with the format of `default_preferences.json`.
*/
const defaultOptions = {
cursorToolOnLoad: {
/** @type {number} */
value: 0,
kind: OptionKind.VIEWER,
},
defaultUrl: {
/** @type {string} */
value: 'compressed.tracemonkey-pldi-09.pdf',