From e0e56e9e9c7822f03d0269006bffa849aedfc27c Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Wed, 29 Mar 2023 14:30:54 +0200 Subject: [PATCH] [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. --- web/app_options.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/app_options.js b/web/app_options.js index 79d8e5f61..36768194a 100644 --- a/web/app_options.js +++ b/web/app_options.js @@ -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: {