Stop defining the defaultUrl
-option in the MOZCENTRAL viewer
This option is not used, nor has it ever been used, in the *built-in* Firefox PDF Viewer. Hence we can define it only for the environments where it makes sense instead.
This commit is contained in:
parent
abcc32ade0
commit
77aa86e275
@ -74,11 +74,6 @@ const defaultOptions = {
|
||||
value: 0,
|
||||
kind: OptionKind.VIEWER + OptionKind.PREFERENCE,
|
||||
},
|
||||
defaultUrl: {
|
||||
/** @type {string} */
|
||||
value: "compressed.tracemonkey-pldi-09.pdf",
|
||||
kind: OptionKind.VIEWER,
|
||||
},
|
||||
defaultZoomValue: {
|
||||
/** @type {string} */
|
||||
value: "",
|
||||
@ -296,6 +291,11 @@ if (
|
||||
typeof PDFJSDev === "undefined" ||
|
||||
PDFJSDev.test("!PRODUCTION || GENERIC")
|
||||
) {
|
||||
defaultOptions.defaultUrl = {
|
||||
/** @type {string} */
|
||||
value: "compressed.tracemonkey-pldi-09.pdf",
|
||||
kind: OptionKind.VIEWER,
|
||||
};
|
||||
defaultOptions.disablePreferences = {
|
||||
/** @type {boolean} */
|
||||
value: typeof PDFJSDev !== "undefined" && PDFJSDev.test("TESTING"),
|
||||
@ -320,6 +320,11 @@ if (
|
||||
|
||||
defaultOptions.renderer.kind += OptionKind.PREFERENCE;
|
||||
} else if (PDFJSDev.test("CHROME")) {
|
||||
defaultOptions.defaultUrl = {
|
||||
/** @type {string} */
|
||||
value: "",
|
||||
kind: OptionKind.VIEWER,
|
||||
};
|
||||
defaultOptions.disableTelemetry = {
|
||||
/** @type {boolean} */
|
||||
value: false,
|
||||
|
Loading…
Reference in New Issue
Block a user