Skip to content

Commit fe64cb3

Browse files
save file
1 parent e355be0 commit fe64cb3

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

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

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
</span>
8181

8282
<span id=iframe-show class=radio>
83-
<input type=checkbox checked>
83+
<input type=checkbox>
8484
iframe
8585
</span>
8686

@@ -200,6 +200,8 @@
200200

201201
//btn.wrap(chk.wrap);
202202

203+
create.iframe();
204+
203205

204206
}//initdom
205207

@@ -352,14 +354,8 @@
352354
}//sandbox
353355

354356

355-
obj.run.iframe2 = async function(js,params={}){
356-
debug('run.iframe2');
357-
var resolve,promise=new Promise(res=>resolve=res);
358-
359-
if(iframe){
360-
iframe.remove();
361-
}
362-
357+
create.iframe = function({onload}={}){
358+
363359
iframe = document.createElement('iframe');
364360
obj.iframe = iframe;
365361

@@ -374,6 +370,18 @@
374370
//document.body.append(iframe)
375371
//cur.root.append(iframe);
376372

373+
}//iframe
374+
375+
376+
obj.run.iframe2 = async function(js,params={}){
377+
debug('run.iframe2');
378+
var resolve,promise=new Promise(res=>resolve=res);
379+
380+
if(iframe){
381+
iframe.remove();
382+
}
383+
384+
create.iframe({onload});
377385

378386
return promise;
379387

0 commit comments

Comments
 (0)