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).
const data = event.data as { __om_init_request?: boolean } | null;
if (data && data.__om_init_request === true) {
const iframe = iframeRef.current;
if (iframe && iframe.contentWindow === event.source) {
iframe.contentWindow.postMessage(
{ __om_init_response: true, artboardId: id },
'*',
);
const win = iframeRef.current?.contentWindow;
if (win && win === event.source) {
win.postMessage({ __om_init_response: true, artboardId: id }, '*');
}
return;
}
File diff suppressed because one or more lines are too long