mirror of
https://github.com/penpot/penpot.git
synced 2026-09-13 23:48:42 +00:00
📎 Minor cosmetic fixes
This commit is contained in:
parent
903a9356a9
commit
d4c1e2fc36
@ -167,5 +167,4 @@
|
|||||||
(-> (p/do! (.acquire ^js pool))
|
(-> (p/do! (.acquire ^js pool))
|
||||||
(p/then (partial on-acquire pool))
|
(p/then (partial on-acquire pool))
|
||||||
(p/catch (fn [cause]
|
(p/catch (fn [cause]
|
||||||
(js/console.log "KKK" cause)
|
|
||||||
(p/rejected cause)))))))
|
(p/rejected cause)))))))
|
||||||
|
|||||||
@ -56,9 +56,10 @@
|
|||||||
(.on zip "entry" (fn [data]
|
(.on zip "entry" (fn [data]
|
||||||
(let [name (unchecked-get data "name")
|
(let [name (unchecked-get data "name")
|
||||||
num (swap! progress inc)]
|
num (swap! progress inc)]
|
||||||
|
;; Sample code used for testing failing exports
|
||||||
#_(when (= 2 num)
|
#_(when (= 2 num)
|
||||||
(.abort ^js zip)
|
(.abort ^js zip)
|
||||||
(reject (js/Error. "unable to create zip file")))
|
(reject (js/Error. "unable to create zip file")))
|
||||||
(on-progress
|
(on-progress
|
||||||
{:total (count items)
|
{:total (count items)
|
||||||
:done num}))))
|
:done num}))))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user