Skip to content

Commit 11e93ae

Browse files
authored
Merge pull request #844 from limzykenneth/fix-reference-history
Set iframe srcdoc attribute to blank to prevent iframe navigation
2 parents 040ae7e + 880567d commit 11e93ae

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)