Skip to content

Commit

Permalink
fix(pdf): incorrect path of pdfjs cmaps resources
Browse files Browse the repository at this point in the history
  • Loading branch information
xyhp915 authored and andelf committed Aug 23, 2023
1 parent f134570 commit e04aaf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/frontend/extensions/pdf/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -910,8 +910,8 @@
opts {:url url
:password (or doc-password "")
:ownerDocument (.-ownerDocument loader-el)
:cMapUrl "./cmaps/"
;;:cMapUrl "https://cdn.jsdelivr.net/npm/pdfjs-dist@2.8.335/cmaps/"
:cMapUrl "./js/pdfjs/cmaps/"
;:cMapUrl "https://cdn.jsdelivr.net/npm/pdfjs-dist@3.9.179/cmaps/"
:cMapPacked true}]

(set-loader-state! {:status :loading})
Expand Down

0 comments on commit e04aaf2

Please sign in to comment.