Merge pull request #13116 from Snuffleupagus/enableScripting-true
Enable scripting by default in the viewer (PR 13053 follow-up)
This commit is contained in:
commit
92d3a93897
@ -153,7 +153,7 @@
|
|||||||
},
|
},
|
||||||
"enableScripting": {
|
"enableScripting": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": false
|
"default": true
|
||||||
},
|
},
|
||||||
"enablePermissions": {
|
"enablePermissions": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
|
@ -67,9 +67,7 @@ const defaultOptions = {
|
|||||||
},
|
},
|
||||||
enableScripting: {
|
enableScripting: {
|
||||||
/** @type {boolean} */
|
/** @type {boolean} */
|
||||||
value:
|
value: true,
|
||||||
typeof PDFJSDev === "undefined" ||
|
|
||||||
PDFJSDev.test("!PRODUCTION || TESTING"),
|
|
||||||
kind: OptionKind.VIEWER + OptionKind.PREFERENCE,
|
kind: OptionKind.VIEWER + OptionKind.PREFERENCE,
|
||||||
},
|
},
|
||||||
enableWebGL: {
|
enableWebGL: {
|
||||||
|
Loading…
Reference in New Issue
Block a user