Explorar el Código

fix: image rendering with url starts with data:

Tienson Qin hace 4 años
padre
commit
1f16b90fbb
Se han modificado 1 ficheros con 2 adiciones y 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