Add allow-modals to iframe, allowing alert and prompt. Discussed in Issue #507. (#518)

This commit is contained in:
Chris Hallberg 2018-02-07 12:47:25 -05:00 committed by Cassie Tarakajian
parent 798e748d8f
commit 62670e6dda

View file

@ -407,7 +407,7 @@ class PreviewFrame extends React.Component {
frameBorder="0" frameBorder="0"
title="sketch output" title="sketch output"
ref={(element) => { this.iframeElement = element; }} ref={(element) => { this.iframeElement = element; }}
sandbox="allow-scripts allow-pointer-lock allow-same-origin allow-popups allow-forms" sandbox="allow-scripts allow-pointer-lock allow-same-origin allow-popups allow-forms allow-modals"
/> />
); );
} }