Skip to content

Commit

Permalink
Update refresh.ts (#4307)
Browse files Browse the repository at this point in the history
Fix #4306
  • Loading branch information
wasalm authored Jul 1, 2024
1 parent 1465f0d commit 0a42575
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion viewer/components/refresh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0a42575

Please sign in to comment.