mirror of
https://github.com/penpot/penpot.git
synced 2026-09-08 21:19:49 +00:00
🐛 Route Google fonts fetch warning through project logger (#9422)
This commit is contained in:
parent
f5b38a5025
commit
a53237ce9f
@ -151,7 +151,7 @@
|
|||||||
(->> (http/send! {:method :get :uri url :mode :cors :response-type :text})
|
(->> (http/send! {:method :get :uri url :mode :cors :response-type :text})
|
||||||
(rx/map :body)
|
(rx/map :body)
|
||||||
(rx/catch (fn [err]
|
(rx/catch (fn [err]
|
||||||
(.warn js/console "Cannot find the font" (obj/get err "message"))
|
(log/wrn :hint "cannot find the font" :cause err)
|
||||||
(rx/empty)))))
|
(rx/empty)))))
|
||||||
|
|
||||||
(defmethod load-font :google
|
(defmethod load-font :google
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user