From 62670e6dda3d7b92f3a75daa52944c96158e5b69 Mon Sep 17 00:00:00 2001 From: Chris Hallberg Date: Wed, 7 Feb 2018 12:47:25 -0500 Subject: [PATCH] Add allow-modals to iframe, allowing alert and prompt. Discussed in Issue #507. (#518) --- client/modules/IDE/components/PreviewFrame.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/modules/IDE/components/PreviewFrame.jsx b/client/modules/IDE/components/PreviewFrame.jsx index bf3313b4..58a504d6 100644 --- a/client/modules/IDE/components/PreviewFrame.jsx +++ b/client/modules/IDE/components/PreviewFrame.jsx @@ -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" /> ); }