fix(pdf): incorrect styles for the external window pdf viewer

This commit is contained in:
charlie
2025-01-11 15:46:53 +08:00
parent 0cffd64d44
commit 4d0fbe11be
3 changed files with 8 additions and 5 deletions

View File

@@ -105,8 +105,9 @@
(js/console.error e)))))))
(defn clear-all-selection
[]
(.removeAllRanges (js/window.getSelection)))
([] (clear-all-selection js/window))
([^js win]
(some-> win (.getSelection) (.removeAllRanges))))
(def adjust-viewer-size!
(util/debounce