0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-14 08:41:48 -05:00

🐛 Fix unexpected exception on thumbnails & raf

This commit is contained in:
Andrey Antukh 2023-05-09 13:08:11 +02:00
parent 63f4ef97fb
commit cf03cb4ca4

View file

@ -41,10 +41,12 @@
(rx/create
(fn [subs]
(ts/raf
#(.toBlob node (fn [blob]
(rx/push! subs blob)
(rx/end! subs))
"image/png"))))
(fn []
(.toBlob node (fn [blob]
(rx/push! subs blob)
#_(rx/end! subs))
"image/png")))
(constantly nil)))
;; Not found, we retry after delay
(->> (rx/timer 250)