We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a5756f commit 15825deCopy full SHA for 15825de
1 file changed
utils/editors/html-editor/html/output-html/v2.0/output-html-v2.0.html
@@ -44,7 +44,7 @@
44
45
<div id=hldr>
46
<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'
+ sandbox='allow-scripts allow-same-origin allow-forms allow-downloads allow-pointer-lock allow-popups-to-escape-sandbox'
48
></iframe>
49
<div id=glass></div>
50
</div>
@@ -173,8 +173,8 @@
173
console.log(attr);
174
var tokens = new Set(attr.split(/\s+/).filter(Boolean));
175
176
- if(chk['allow-scripts'].checked){
177
- tokens.add('allow-scripts');
+ if(!chk['allow-scripts'].checked){
+ tokens.delete('allow-scripts');
178
}
179
if(chk['allow-modals'].checked){
180
tokens.add('allow-modals');
0 commit comments