mirror of
https://github.com/penpot/penpot.git
synced 2025-07-26 17:47:22 +02:00
♻️ Refactor how fonts are passed to raster
This commit is contained in:
parent
8f356b679d
commit
39635cf5df
3 changed files with 35 additions and 6 deletions
|
@ -238,7 +238,9 @@
|
|||
:scope "penpot/rasterizer"
|
||||
:payload payload}]
|
||||
(when-not (identical? js/window js/parent)
|
||||
(.postMessage js/parent message parent-origin))))
|
||||
(if (instance? js/ImageBitmap payload)
|
||||
(.postMessage js/parent message parent-origin #js [payload])
|
||||
(.postMessage js/parent message parent-origin)))))
|
||||
|
||||
(defn- send-success!
|
||||
"Sends a success message."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue