updated stuff

This commit is contained in:
SinachPat
2026-05-10 01:19:20 +01:00
parent a2ab1c5dc6
commit f51dfa5e4d
2 changed files with 4 additions and 7 deletions
@@ -110,12 +110,9 @@ export function LiveArtboard({
// origin loads as a Spectre mitigation). // origin loads as a Spectre mitigation).
const data = event.data as { __om_init_request?: boolean } | null; const data = event.data as { __om_init_request?: boolean } | null;
if (data && data.__om_init_request === true) { if (data && data.__om_init_request === true) {
const iframe = iframeRef.current; const win = iframeRef.current?.contentWindow;
if (iframe && iframe.contentWindow === event.source) { if (win && win === event.source) {
iframe.contentWindow.postMessage( win.postMessage({ __om_init_response: true, artboardId: id }, '*');
{ __om_init_response: true, artboardId: id },
'*',
);
} }
return; return;
} }
File diff suppressed because one or more lines are too long