Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 62670e6

Browse files
Chris Hallbergcatarak
Chris Hallberg
authored andcommitted
Add allow-modals to iframe, allowing alert and prompt. Discussed in Issue processing#507. (processing#518)
1 parent 798e748 commit 62670e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/modules/IDE/components/PreviewFrame.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ class PreviewFrame extends React.Component {
407407
frameBorder="0"
408408
title="sketch output"
409409
ref={(element) => { this.iframeElement = element; }}
410-
sandbox="allow-scripts allow-pointer-lock allow-same-origin allow-popups allow-forms"
410+
sandbox="allow-scripts allow-pointer-lock allow-same-origin allow-popups allow-forms allow-modals"
411411
/>
412412
);
413413
}

0 commit comments

Comments
 (0)