mirror of
https://github.com/penpot/penpot.git
synced 2026-05-15 21:13:58 +00:00
🐛 Fix plugins schema validation error (#9632)
This commit is contained in:
parent
67d9567971
commit
8afe8a5dfa
@ -464,6 +464,13 @@
|
||||
(let [o (get o type-symbol)]
|
||||
(= o t))))
|
||||
|
||||
#?(:cljs
|
||||
(def Proxy
|
||||
(app.util.object/class
|
||||
:name "Proxy"
|
||||
:extends js/Object
|
||||
:constructor (constantly nil))))
|
||||
|
||||
(defmacro reify
|
||||
"A domain specific variation of reify that creates anonymous objects
|
||||
on demand with the ability to assign protocol implementations and
|
||||
@ -481,7 +488,7 @@
|
||||
obj-sym
|
||||
(gensym "obj-")]
|
||||
|
||||
`(let [~obj-sym (cljs.core/js-obj)
|
||||
`(let [~obj-sym (new Proxy)
|
||||
~f-sym (fn [] ~type-name)]
|
||||
(add-properties! ~obj-sym
|
||||
{:name ~'js/Symbol.toStringTag
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user