[Firefox] Set the imageResourcesPath correctly (PR 16153 follow-up)

We missed updating this path in PR 16153, which breaks loading of annotation-icons in the Firefox PDF Viewer.
This commit is contained in:
Jonas Jenwald 2023-03-29 14:30:54 +02:00
parent 43917796c2
commit e0e56e9e9c

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: {