mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
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:
parent
6db9c3cb49
commit
c2f1523f06
3 changed files with 16 additions and 7 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue