Skip to content

Commit

Permalink
upgrade pdfjs
Browse files Browse the repository at this point in the history
  • Loading branch information
sprocketc authored and tiensonqin committed Aug 4, 2023
1 parent 33f6438 commit 5d9861a
Show file tree
Hide file tree
Showing 3 changed files with 209 additions and 40 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
"mldoc": "1.5.7",
"path": "0.12.7",
"path-complete-extname": "1.0.0",
"pdfjs-dist": "2.14.305",
"pdfjs-dist": "^3.9.179",
"photoswipe": "^5.3.7",
"pixi-graph-fork": "0.2.0",
"pixi.js": "6.2.0",
Expand Down
2 changes: 1 addition & 1 deletion src/main/frontend/extensions/pdf/utils.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
(defn resolve-hls-layer!
[^js viewer page]
(when-let [^js text-layer (.. viewer (getPageView (dec page)) -textLayer)]
(let [cnt (.-textLayerDiv text-layer)
(let [cnt (.-div text-layer)
cls "extensions__pdf-hls-layer"
doc js/document
layer (.querySelector cnt (str "." cls))]
Expand Down
Loading

0 comments on commit 5d9861a

Please sign in to comment.