Skip to content

Commit

Permalink
Update refresh.ts
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 6ed8743
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

1 comment on commit 6ed8743

@benz0li
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wasalm Thank you for keeping an eye on code-server compatibility.

Cross references:

Please sign in to comment.