mirror of
https://github.com/penpot/penpot.git
synced 2026-05-04 15:49:34 +00:00
🐛 Add warning when font cannot be found
This commit is contained in:
parent
bebdc78ce6
commit
3a71068a48
@ -133,7 +133,10 @@
|
||||
(defn- fetch-gfont-css
|
||||
[url]
|
||||
(->> (http/send! {:method :get :uri url :mode :cors :response-type :text})
|
||||
(rx/map :body)))
|
||||
(rx/map :body)
|
||||
(rx/catch (fn [err]
|
||||
(.warn js/console "Cannot find the font" (obj/get err "message"))
|
||||
(rx/empty)))))
|
||||
|
||||
(defmethod load-font :google
|
||||
[{:keys [id ::on-loaded] :as font}]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user