File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
client/modules/IDE/components Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -353,6 +353,8 @@ class PreviewFrame extends React.Component {
353353 'preview-frame' : true ,
354354 'preview-frame--full-view' : this . props . fullView
355355 } ) ;
356+ const sandboxAttributes =
357+ 'allow-scripts allow-pointer-lock allow-same-origin allow-popups allow-forms allow-modals allow-downloads' ;
356358 return (
357359 < iframe
358360 id = "canvas_frame"
@@ -362,7 +364,7 @@ class PreviewFrame extends React.Component {
362364 frameBorder = "0"
363365 title = "sketch preview"
364366 ref = { ( element ) => { this . iframeElement = element ; } }
365- sandbox = "allow-scripts allow-pointer-lock allow-same-origin allow-popups allow-forms allow-modals"
367+ sandbox = { sandboxAttributes }
366368 />
367369 ) ;
368370 }
You can’t perform that action at this time.
0 commit comments