improve(pdf): disable support nfs currently

pull/2471/head
charlie 2021-08-05 20:10:49 +08:00
parent 2ee5b52293
commit fb50d5c1fd
1 changed files with 5 additions and 5 deletions

View File

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