mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
[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:
parent
43917796c2
commit
e0e56e9e9c
1 changed files with 4 additions and 1 deletions
|
@ -125,7 +125,10 @@ const defaultOptions = {
|
||||||
},
|
},
|
||||||
imageResourcesPath: {
|
imageResourcesPath: {
|
||||||
/** @type {string} */
|
/** @type {string} */
|
||||||
value: "./images/",
|
value:
|
||||||
|
typeof PDFJSDev !== "undefined" && PDFJSDev.test("MOZCENTRAL")
|
||||||
|
? "resource://pdf.js/web/images/"
|
||||||
|
: "./images/",
|
||||||
kind: OptionKind.VIEWER,
|
kind: OptionKind.VIEWER,
|
||||||
},
|
},
|
||||||
maxCanvasPixels: {
|
maxCanvasPixels: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue