Skip to content

Commit 5acfba4

Browse files
authored
Merge pull request #1948 from bh462007/fix/giscus-contentwindow-null-check
fix: guard against undefined contentWindow in GiscusComments
2 parents 854f8b1 + c1aa08b commit 5acfba4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/giscus.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ const GiscusComments: React.FC<GiscusCommentsProps> = ({
130130
"iframe.giscus-frame",
131131
);
132132

133-
if (!iframe) {
133+
if (!iframe || !iframe.contentWindow) {
134134
return;
135135
}
136136

0 commit comments

Comments
 (0)