Enable scripting by default in the development viewer

Given that scripting is now enabled in Firefox Nightly (but only there), it seems weird to not have scripting enabled by default in `gulp server` mode.
This commit is contained in:
Jonas Jenwald 2021-03-01 16:25:12 +01:00
parent 4b49db7c95
commit 7dc1bbf05e

View File

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