Merge pull request #16228 from Snuffleupagus/firefox-imageResourcesPath

[Firefox] Set the `imageResourcesPath` correctly (PR 16153 follow-up)
This commit is contained in:
Jonas Jenwald 2023-03-29 14:57:58 +02:00 committed by GitHub
commit 09da8026b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -125,7 +125,10 @@ const defaultOptions = {
},
imageResourcesPath: {
/** @type {string} */
value: "./images/",
value:
typeof PDFJSDev !== "undefined" && PDFJSDev.test("MOZCENTRAL")
? "resource://pdf.js/web/images/"
: "./images/",
kind: OptionKind.VIEWER,
},
maxCanvasPixels: {