Przeglądaj źródła

fix: desktop app not inline image

rcmerci 4 lat temu
rodzic
commit
3c91d529d5
1 zmienionych plików z 4 dodań i 4 usunięć
  1. 4 4
      src/main/frontend/components/block.cljs

+ 4 - 4
src/main/frontend/components/block.cljs

@@ -761,14 +761,14 @@
                       :target "_blank"}
                   (map-inline config label))
 
-          (and (util/electron?)
-               (show-link? config metadata s full_text))
-          (asset-reference (second (first label)) s)
-
           ;; image
           (show-link? config metadata s full_text)
           (image-link config url s label metadata full_text)
 
+          (and (util/electron?)
+               (show-link? config metadata s full_text))
+          (asset-reference (second (first label)) s)
+
           :else
           (page-reference (:html-export? config) s config label))