Explorar o código

fix: image rendering with url starts with data:

Tienson Qin %!s(int64=4) %!d(string=hai) anos
pai
achega
1f16b90fbb
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/main/frontend/handler/image.cljs

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

@@ -22,7 +22,8 @@
                               (and src
                                    (not (or (util/starts-with? src "http://")
                                             (util/starts-with? src "https://")
-                                            (util/starts-with? src "blob:"))))))
+                                            (util/starts-with? src "blob:")
+                                            (util/starts-with? src "data:"))))))
                           images)]
         (doseq [img local-images]
           (gobj/set img