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
1 changed files with 1 additions and 1 deletions

View File

@ -407,7 +407,7 @@ class PreviewFrame extends React.Component {
frameBorder="0"
title="sketch output"
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"
/>
);
}