mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
Add OpenAction destination support, off by default, to the viewer
Given that it's really not clear to me if this is actually desired functionality in the default viewer, and considering that it doesn't fit in *great* with the way that `PDFHistory` is initialized, this feature is currently off by default[1]. --- [1] It's controlled with the `disableOpenActionDestination` Preference/AppOption.
This commit is contained in:
parent
b05f053287
commit
a7e70a50f5
6 changed files with 42 additions and 10 deletions
|
@ -48,6 +48,11 @@ const defaultOptions = {
|
|||
value: false,
|
||||
kind: OptionKind.VIEWER,
|
||||
},
|
||||
disableOpenActionDestination: {
|
||||
/** @type {boolean} */
|
||||
value: true,
|
||||
kind: OptionKind.VIEWER,
|
||||
},
|
||||
disablePageLabels: {
|
||||
/** @type {boolean} */
|
||||
value: false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue