1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

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

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