From 6ed8743dbd232ed09c60a8dc7bbeb03263c1e42f Mon Sep 17 00:00:00 2001 From: wasalm Date: Mon, 1 Jul 2024 16:37:06 +0200 Subject: [PATCH] Update refresh.ts Fix #4306 --- viewer/components/refresh.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/viewer/components/refresh.ts b/viewer/components/refresh.ts index 127cb4c12..5b28bd8fd 100644 --- a/viewer/components/refresh.ts +++ b/viewer/components/refresh.ts @@ -76,7 +76,7 @@ export async function refresh() { const { encodedPath, docTitle } = utils.parseURL() /* eslint-disable */ const doc = await pdfjsLib.getDocument({ - url: `/${utils.pdfFilePrefix}${encodedPath}`, + url: `${utils.pdfFilePrefix}${encodedPath}`, cMapUrl: '../cmaps/' }).promise PDFViewerApplication.load(doc)