From c1aa08b0f3c4a0b81c796cba6087f17d13c773e5 Mon Sep 17 00:00:00 2001 From: Bhagyashree Pal Date: Wed, 8 Jul 2026 17:56:13 +0530 Subject: [PATCH] fix: guard against undefined contentWindow in GiscusComments --- src/components/giscus.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/giscus.tsx b/src/components/giscus.tsx index 02aa33e1..9f87758f 100644 --- a/src/components/giscus.tsx +++ b/src/components/giscus.tsx @@ -130,7 +130,7 @@ const GiscusComments: React.FC = ({ "iframe.giscus-frame", ); - if (!iframe) { + if (!iframe || !iframe.contentWindow) { return; }