Skip to content

Commit 183ce10

Browse files
aadesh18N2D4
andauthored
Apply suggestion from @N2D4
Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
1 parent e89989e commit 183ce10

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

apps/dashboard/src/components/commands/create-dashboard/dashboard-sandbox-host.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,7 @@ export const DashboardSandboxHost = memo(function DashboardSandboxHost({
430430
return;
431431
}
432432
if (!iframeRef.current?.contentWindow || event.source !== iframeRef.current.contentWindow) {
433+
console.warn("Unknown iframe source; rejecting message", event);
433434
return;
434435
}
435436
if (event.origin !== "null") {

0 commit comments

Comments
 (0)