mirror of
https://github.com/penpot/penpot.git
synced 2025-05-19 23:36:11 +02:00
🐛 Fix unexpected exception on thumbnails & raf
This commit is contained in:
parent
63f4ef97fb
commit
cf03cb4ca4
1 changed files with 6 additions and 4 deletions
|
@ -41,10 +41,12 @@
|
||||||
(rx/create
|
(rx/create
|
||||||
(fn [subs]
|
(fn [subs]
|
||||||
(ts/raf
|
(ts/raf
|
||||||
#(.toBlob node (fn [blob]
|
(fn []
|
||||||
|
(.toBlob node (fn [blob]
|
||||||
(rx/push! subs blob)
|
(rx/push! subs blob)
|
||||||
(rx/end! subs))
|
#_(rx/end! subs))
|
||||||
"image/png"))))
|
"image/png")))
|
||||||
|
(constantly nil)))
|
||||||
|
|
||||||
;; Not found, we retry after delay
|
;; Not found, we retry after delay
|
||||||
(->> (rx/timer 250)
|
(->> (rx/timer 250)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue