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:
parent
99e442941c
commit
628e672765
2 changed files with 7 additions and 5 deletions
|
@ -101,7 +101,7 @@ const defaultOptions = {
|
|||
},
|
||||
enableScripting: {
|
||||
/** @type {boolean} */
|
||||
value: true,
|
||||
value: typeof PDFJSDev === "undefined" || !PDFJSDev.test("CHROME"),
|
||||
kind: OptionKind.VIEWER + OptionKind.PREFERENCE,
|
||||
},
|
||||
externalLinkRel: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue