Skip to content

Commit 1b1c027

Browse files
limzykennethdavepagurek
authored andcommitted
Merge pull request #844 from limzykenneth/fix-reference-history
Set iframe srcdoc attribute to blank to prevent iframe navigation
1 parent eaf7e28 commit 1b1c027

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
@@ -163,7 +163,7 @@ export const CodeFrame = (props: CodeFrameProps) => {
163163
base: props.base,
164164
scripts: props.scripts,
165165
instanceMode: props.jsCode.includes('new p5'),
166-
}) : undefined}
166+
}) : ""}
167167
sandbox="allow-scripts allow-popups allow-modals allow-forms allow-same-origin"
168168
aria-label="Code Preview"
169169
title="Code Preview"

0 commit comments

Comments
 (0)