mirror of
https://github.com/penpot/penpot.git
synced 2025-06-02 04:11:39 +02:00
🐛 Fix incorrect streams handling on thumbnail_render
This commit is contained in:
parent
a7f39e89f6
commit
b8dee17075
1 changed files with 3 additions and 2 deletions
|
@ -97,11 +97,12 @@
|
|||
(defn- svg-update-image!
|
||||
"Updates an image in an SVG to a Data URI."
|
||||
[image]
|
||||
(when-let [href (dom/get-attribute image "href")]
|
||||
(if-let [href (dom/get-attribute image "href")]
|
||||
(->> (fetch-as-data-uri href)
|
||||
(rx/map (fn [url]
|
||||
(dom/set-attribute! image "href" url)
|
||||
image)))))
|
||||
image)))
|
||||
(rx/empty)))
|
||||
|
||||
(defn- svg-resolve-images!
|
||||
"Resolves all images in an SVG to Data URIs."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue