0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-12 18:18:24 -05:00

📎 Minor cosmetic fixes

This commit is contained in:
Andrey Antukh 2022-03-22 11:22:20 +01:00 committed by Alonso Torres
parent 903a9356a9
commit d4c1e2fc36
2 changed files with 3 additions and 3 deletions

View file

@ -167,5 +167,4 @@
(-> (p/do! (.acquire ^js pool))
(p/then (partial on-acquire pool))
(p/catch (fn [cause]
(js/console.log "KKK" cause)
(p/rejected cause)))))))

View file

@ -56,9 +56,10 @@
(.on zip "entry" (fn [data]
(let [name (unchecked-get data "name")
num (swap! progress inc)]
;; Sample code used for testing failing exports
#_(when (= 2 num)
(.abort ^js zip)
(reject (js/Error. "unable to create zip file")))
(.abort ^js zip)
(reject (js/Error. "unable to create zip file")))
(on-progress
{:total (count items)
:done num}))))