1
0

fix argument passing

This commit is contained in:
Guillermo Vaya 2022-07-17 18:52:47 +02:00
parent ec3fa7aa37
commit c3028be8c0

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