Skip to content

Commit 880567d

Browse files
committed
Set iframe srcdoc attribute to blank to prevent iframe navigation
1 parent da3a49c commit 880567d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/CodeEmbed/frame.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ export const CodeFrame = (props: CodeFrameProps) => {
161161
htmlBody: props.htmlBodyCode,
162162
base: props.base,
163163
scripts: props.scripts,
164-
}) : undefined}
164+
}) : ""}
165165
sandbox="allow-scripts allow-popups allow-modals allow-forms allow-same-origin"
166166
aria-label="Code Preview"
167167
title="Code Preview"

0 commit comments

Comments
 (0)