diff --git a/src/App.tsx b/src/App.tsx index baafb3c..03575bf 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -47,10 +47,10 @@ export default function App() { ); const handlePublish = async (data: any, route?: { key: string }) => { - console.log("PUBLISH", { data, route: route?.key }); + console.log({ type: "PUBLISH", data: { data, route: JSON.stringify(route) } }); if (typeof window !== "undefined" && window.parent !== window) { window.parent.postMessage( - { type: "PUBLISH", data: { data, route: route?.key } }, + { type: "PUBLISH", data: { data, route } }, "*", ); }