Merge pull request #13116 from Snuffleupagus/enableScripting-true

Enable scripting by default in the viewer (PR 13053 follow-up)
This commit is contained in:
Tim van der Meij 2021-03-19 22:48:57 +01:00 committed by GitHub
commit 92d3a93897
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View File

@ -153,7 +153,7 @@
}, },
"enableScripting": { "enableScripting": {
"type": "boolean", "type": "boolean",
"default": false "default": true
}, },
"enablePermissions": { "enablePermissions": {
"type": "boolean", "type": "boolean",

View File

@ -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: {