fix argument passing
parent
ec3fa7aa37
commit
c3028be8c0
|
@ -44,7 +44,7 @@ export function Panel({
|
|||
let data = evt.data;
|
||||
if (!data) return;
|
||||
if (data.type === "event") {
|
||||
editor.dispatchAppEvent(data.name, data.args);
|
||||
editor.dispatchAppEvent(data.name, ...data.args);
|
||||
}
|
||||
};
|
||||
window.addEventListener("message", messageListener);
|
||||
|
|
Loading…
Reference in New Issue