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:
parent
63f4ef97fb
commit
cf03cb4ca4
1 changed files with 6 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue