Merge pull request #32 from Willyfrog/panel_arguments
This commit is contained in:
commit
c5ac6ea035
@ -44,7 +44,7 @@ export function Panel({
|
|||||||
let data = evt.data;
|
let data = evt.data;
|
||||||
if (!data) return;
|
if (!data) return;
|
||||||
if (data.type === "event") {
|
if (data.type === "event") {
|
||||||
editor.dispatchAppEvent(data.name, data.args);
|
editor.dispatchAppEvent(data.name, ...data.args);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
window.addEventListener("message", messageListener);
|
window.addEventListener("message", messageListener);
|
||||||
|
Loading…
Reference in New Issue
Block a user