Skip to content

Commit 758c880

Browse files
save file
1 parent d1d48cf commit 758c880

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

utils/editors/js-console/html/output-console/v2.0/output-console-v2.0.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@
284284

285285
iframe = document.createElement('iframe');
286286
obj.iframe = iframe;
287+
iframe.sandbox = 'sandbox="allow-scripts allow-same-origin"';
287288
iframe.srcdoc = `<script>${js}</scr`+`ipt>`;
288289
iframe.onload = onload;
289290
cur.root.append(iframe);

0 commit comments

Comments
 (0)