0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-19 05:15:44 -05:00

🐛 Fix remove time debug info

This commit is contained in:
Alejandro Alonso 2022-05-13 12:00:18 +02:00
parent 15418a252e
commit db8e829339

View file

@ -21,7 +21,7 @@
(defn- draw-thumbnail-canvas (defn- draw-thumbnail-canvas
[canvas-node img-node] [canvas-node img-node]
(time (try (try
(when (and (some? canvas-node) (some? img-node)) (when (and (some? canvas-node) (some? img-node))
(let [canvas-context (.getContext canvas-node "2d") (let [canvas-context (.getContext canvas-node "2d")
canvas-width (.-width canvas-node) canvas-width (.-width canvas-node)
@ -38,7 +38,7 @@
(.toDataURL canvas-node "image/png" 1.0))) (.toDataURL canvas-node "image/png" 1.0)))
(catch :default err (catch :default err
(.error js/console err) (.error js/console err)
nil)))) nil)))
(defn use-render-thumbnail (defn use-render-thumbnail
"Hook that will create the thumbnail thata" "Hook that will create the thumbnail thata"