Skip to content

Commit 37f0179

Browse files
save file
1 parent 481a100 commit 37f0179

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

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

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -275,19 +275,22 @@
275275
iframe = iframe.cloneNode();
276276

277277
build.sandbox();
278-
278+
iframe.onload = onload;
279279
hldr.append(iframe);
280280

281+
function onload(){
281282

282-
if(!chk['console-persist'].checked){
283-
webconsole.clear();
284-
if(chk['console-echo'].checked){
285-
console.clear();
283+
if(!chk['console-persist'].checked){
284+
webconsole.clear();
285+
if(chk['console-echo'].checked){
286+
console.clear();
287+
}
286288
}
287-
}
288-
289-
var echo = chk['console-echo'].checked;
290-
iframe.contentWindow.postMessage({type:'run',html,echo},'*');
289+
290+
var echo = chk['console-echo'].checked;
291+
iframe.contentWindow.postMessage({type:'run',html,echo},'*');
292+
293+
}//onload
291294

292295
}//sandbox
293296

0 commit comments

Comments
 (0)