Browse Source

fix: assets

Tienson Qin 2 years ago
parent
commit
00e2000639
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/main/frontend/handler/image.cljs

+ 2 - 2
src/main/frontend/handler/image.cljs

@@ -13,9 +13,9 @@
   []
   (when-not (and (or (util/electron?)
                      (mobile-util/native-ios?))
-                 (config/local-file-based-graph? (state/get-current-repo)))
+                 (or (config/local-file-based-graph? (state/get-current-repo))
+                     (config/db-based-graph? (state/get-current-repo))))
     (try
-      (prn "render local images")
       (let [images (array-seq (gdom/getElementsByTagName "img"))
             get-src (fn [image] (.getAttribute image "src"))
             local-images (filter