Skip to content

Commit 15825de

Browse files
save file
1 parent 0a5756f commit 15825de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

utils/editors/html-editor/html/output-html/v2.0/output-html-v2.0.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
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>
@@ -173,8 +173,8 @@
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');

0 commit comments

Comments
 (0)