Skip to content

Commit

Permalink
Fix #4089 Correct cmap location
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Yu committed Dec 12, 2023
1 parent 1d5a9ba commit 665ccf4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions dev/editviewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
.replace('''console.log(`PDF ${pdfDocument.''', '''// console.log(`PDF ${pdfDocument.''')
.replace('''value: "../build/pdf.worker.mjs",''', '''value: "./build/pdf.worker.mjs",''')
.replace('''value: "../build/pdf.sandbox.mjs",''', '''value: "./build/pdf.sandbox.mjs",''')
.replace('''value: "../web/cmaps/",''', '''value: "../cmaps/",''')
.replace('''value: "../web/standard_fonts/",''', '''value: "../standard_fonts/",''')
.replace('''parent.document.dispatchEvent(event);''', '''parent.document.dispatchEvent(event); \n document.dispatchEvent(event);''')
)

Expand Down
4 changes: 2 additions & 2 deletions viewer/viewer.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ const defaultOptions = {
kind: OptionKind.API
},
cMapUrl: {
value: "../web/cmaps/",
value: "../cmaps/",
kind: OptionKind.API
},
disableAutoFetch: {
Expand Down Expand Up @@ -783,7 +783,7 @@ const defaultOptions = {
kind: OptionKind.API
},
standardFontDataUrl: {
value: "../web/standard_fonts/",
value: "../standard_fonts/",
kind: OptionKind.API
},
verbosity: {
Expand Down

0 comments on commit 665ccf4

Please sign in to comment.