fix argument passing

pull/32/head
Guillermo Vaya 2022-07-17 18:52:47 +02:00
parent ec3fa7aa37
commit c3028be8c0
1 changed files with 1 additions and 1 deletions

View File

@ -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);