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 {
353
353
'preview-frame' : true ,
354
354
'preview-frame--full-view' : this . props . fullView
355
355
} ) ;
356
+ const sandboxAttributes =
357
+ 'allow-scripts allow-pointer-lock allow-same-origin allow-popups allow-forms allow-modals allow-downloads' ;
356
358
return (
357
359
< iframe
358
360
id = "canvas_frame"
@@ -362,7 +364,7 @@ class PreviewFrame extends React.Component {
362
364
frameBorder = "0"
363
365
title = "sketch preview"
364
366
ref = { ( element ) => { this . iframeElement = element ; } }
365
- sandbox = "allow-scripts allow-pointer-lock allow-same-origin allow-popups allow-forms allow-modals"
367
+ sandbox = { sandboxAttributes }
366
368
/>
367
369
) ;
368
370
}
You can’t perform that action at this time.
0 commit comments