File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
utils/editors/html-editor/html/output-html/v2.0 Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 4444
4545 < div id =hldr >
4646 < iframe src ='https://sandbox-ext-code-com-1024713184986.us-central1.run.app/html-sandbox/html-sandbox.html '
47- sandbox ='allow-forms allow-downloads allow-pointer-lock allow-popups-to-escape-sandbox '
47+ sandbox ='allow-scripts allow-same-origin allow- forms allow-downloads allow-pointer-lock allow-popups-to-escape-sandbox '
4848 > </ iframe >
4949 < div id =glass > </ div >
5050 </ div >
173173 console . log ( attr ) ;
174174 var tokens = new Set ( attr . split ( / \s + / ) . filter ( Boolean ) ) ;
175175
176- if ( chk [ 'allow-scripts' ] . checked ) {
177- tokens . add ( 'allow-scripts' ) ;
176+ if ( ! chk [ 'allow-scripts' ] . checked ) {
177+ tokens . delete ( 'allow-scripts' ) ;
178178 }
179179 if ( chk [ 'allow-modals' ] . checked ) {
180180 tokens . add ( 'allow-modals' ) ;
You can’t perform that action at this time.
0 commit comments