🐛 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 (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)