mirror of
https://github.com/penpot/penpot.git
synced 2025-06-07 04:11:41 +02:00
⬆️ Move svg parsing to the frontend with Tubax
This commit is contained in:
parent
f57fb5006d
commit
7ff608ff0b
7 changed files with 25 additions and 13 deletions
|
@ -240,6 +240,15 @@
|
|||
(js/console.error explain)))
|
||||
(js/console.groupEnd "Validation Error"))
|
||||
|
||||
;; Error on parsing an SVG
|
||||
(defmethod ptk/handle-error :svg-parser
|
||||
[error]
|
||||
(ts/schedule
|
||||
(st/emitf
|
||||
(dm/show {:content "SVG is invalid or malformed"
|
||||
:type :error
|
||||
:timeout 3000}))))
|
||||
|
||||
;; This is a pure frontend error that can be caused by an active
|
||||
;; assertion (assertion that is preserved on production builds). From
|
||||
;; the user perspective this should be treated as internal error.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue