Skip to content

Commit c1aa08b

Browse files
committed
fix: guard against undefined contentWindow in GiscusComments
1 parent 854f8b1 commit c1aa08b

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)