Skip to content

Commit 1a51d61

Browse files
save file
1 parent fe64cb3 commit 1a51d61

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,12 +359,16 @@
359359
iframe = document.createElement('iframe');
360360
obj.iframe = iframe;
361361

362+
iframe.onload = onload;
363+
362364
build.sandbox();
363365
iframe.setAttribute('allow',sandbox_allow);
364366
iframe.src = sandbox_url;
365367
debug(sandbox_url);
366-
iframe.style.cssText = 'display:none;box-sizing:border-box';
367-
iframe.onload = onload;
368+
iframe.style.cssText = 'box-sizing:border-box';
369+
if(!chk.iframe.checked){
370+
iframe.style.display = 'none';
371+
}
368372

369373
root.append(iframe);
370374
//document.body.append(iframe)

0 commit comments

Comments
 (0)