1
0

Merge pull request #32 from Willyfrog/panel_arguments

This commit is contained in:
Zef Hemel 2022-07-17 19:10:48 +02:00 committed by GitHub
commit c5ac6ea035
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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