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": {
"type": "boolean",
"default": false
"default": true
},
"enablePermissions": {
"type": "boolean",

View File

@ -67,9 +67,7 @@ const defaultOptions = {
},
enableScripting: {
/** @type {boolean} */
value:
typeof PDFJSDev === "undefined" ||
PDFJSDev.test("!PRODUCTION || TESTING"),
value: true,
kind: OptionKind.VIEWER + OptionKind.PREFERENCE,
},
enableWebGL: {