diff --git a/extensions/chromium/preferences_schema.json b/extensions/chromium/preferences_schema.json index b88a5dc4b..e958ef40f 100644 --- a/extensions/chromium/preferences_schema.json +++ b/extensions/chromium/preferences_schema.json @@ -153,7 +153,7 @@ }, "enableScripting": { "type": "boolean", - "default": false + "default": true }, "enablePermissions": { "type": "boolean", diff --git a/web/app_options.js b/web/app_options.js index 9a91ab697..3382e241e 100644 --- a/web/app_options.js +++ b/web/app_options.js @@ -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: {