fix(pdf): incorrect path of pdfjs cmaps resources

pull/10085/head
charlie 2023-08-23 12:35:01 +08:00 committed by Andelf
parent f134570551
commit e04aaf219a
1 changed files with 2 additions and 2 deletions

View File

@ -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})