mirror of
https://github.com/penpot/penpot.git
synced 2025-07-15 02:17:18 +02:00
✨ Improve input validation in plugins
This commit is contained in:
parent
e13d543dcd
commit
c5c8be4b4a
10 changed files with 120 additions and 40 deletions
|
@ -32,7 +32,10 @@
|
|||
{:name js/Symbol.toStringTag
|
||||
:get (fn [] (str "ViewportProxy"))})
|
||||
|
||||
(defn create-proxy
|
||||
(defn viewport-proxy? [p]
|
||||
(instance? ViewportProxy p))
|
||||
|
||||
(defn viewport-proxy
|
||||
[plugin-id]
|
||||
(crc/add-properties!
|
||||
(ViewportProxy. plugin-id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue