mirror of
https://github.com/penpot/penpot.git
synced 2025-08-07 14:38:33 +02:00
16 lines
411 B
JavaScript
16 lines
411 B
JavaScript
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);
|
|
});
|
|
};
|