diff --git a/common/src/app/common/record.cljc b/common/src/app/common/record.cljc
index f5ac3a39d..1db90dee2 100644
--- a/common/src/app/common/record.cljc
+++ b/common/src/app/common/record.cljc
@@ -430,23 +430,31 @@
(defmacro define-properties!
[rsym & properties]
- (let [rsym (with-meta rsym {:tag 'js})
- self-sym (gensym "self-")
- get-fn-sym (gensym "get-fn-")
- set-fn-sym (gensym "set-fn-")
- params-sym (gensym "params-")
- args-sym (gensym "args-")]
+ (let [rsym (with-meta rsym {:tag 'js})]
`(do
~@(for [params properties
:let [pname (get params :name)
get-fn (get params :get)
- set-fn (get params :set)]]
+ set-fn (get params :set)
+ enum-p (get params :enumerable)
+ conf-p (get params :configurable)
+ writ-p (get params :writable)]]
`(.defineProperty js/Object (.-prototype ~rsym) ~pname
(cljs.core/js-obj
- "enumerable" true
- "configurable" true
~@(concat
+ (if (some? enum-p)
+ ["enumerable" enum-p]
+ ["enumerable" true])
+
+ (if (some? conf-p)
+ ["configurable" conf-p]
+ ["configurable" true])
+
+ (when (some? writ-p)
+ ["writable" writ-p])
+
(when get-fn
["get" get-fn])
+
(when set-fn
["set" set-fn]))))))))
diff --git a/frontend/resources/public/js/plugins-runtime.mjs b/frontend/resources/public/js/plugins-runtime.mjs
deleted file mode 100644
index 2651e233b..000000000
--- a/frontend/resources/public/js/plugins-runtime.mjs
+++ /dev/null
@@ -1,16 +0,0 @@
-export class PluginsElement extends HTMLElement {
- connectedCallback() {
- console.log('PluginsElement.connectedCallback');
- }
-}
-
-customElements.define('penpot-plugins', PluginsElement);
-
-// Alternative to message passing
-export function initialize(api) {
- console.log("PluginsRuntime:initialize", api)
-
- api.addListener("foobar", "page", (page) => {
- console.log("Page Changed:", page.name);
- });
-};
diff --git a/frontend/resources/templates/index.mustache b/frontend/resources/templates/index.mustache
index 138f244f5..9a9fe6e08 100644
--- a/frontend/resources/templates/index.mustache
+++ b/frontend/resources/templates/index.mustache
@@ -23,6 +23,7 @@
{{/isDebug}}
+
@@ -58,10 +59,7 @@
-