Skip to content

Commit

Permalink
improve(pdf): disable support nfs currently
Browse files Browse the repository at this point in the history
  • Loading branch information
xyhp915 committed Aug 5, 2021
1 parent 2ee5b52 commit fb50d5c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/frontend/components/block.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -603,13 +603,13 @@
:block-ref
{:block block})

(case block-type
(match [block-type (util/electron?)]
;; pdf annotation
:annotation (pdf-assets/open-block-ref! block)
[:annotation true] (pdf-assets/open-block-ref! block)

;; default open block page
(route-handler/redirect! {:to :page
:path-params {:name id}}))))}
:else (route-handler/redirect! {:to :page
:path-params {:name id}}))))}
(let [title (let [title (:block/title block)]
[:span.block-ref
(block-content (assoc config :block-ref? true)
Expand Down Expand Up @@ -1494,7 +1494,7 @@
(if title
(conj
(map-inline config title)
(if (not= block-type :default)
(if (and (util/electron?) (not= block-type :default))
[:a.prefix-link
{:on-click #(case block-type
;; pdf annotation
Expand Down

0 comments on commit fb50d5c

Please sign in to comment.