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

[CRX] enableScripting=false by default in Chrome extension

The scripting engine is bundled for users who'd like to use the feature,
but it is disabled by default.
This commit is contained in:
Rob Wu 2021-09-12 01:04:11 +02:00
parent 99e442941c
commit 628e672765
2 changed files with 7 additions and 5 deletions

View file

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