File tree Expand file tree Collapse file tree 1 file changed +17
-9
lines changed
utils/editors/js-console/html/output-console/v3.0 Expand file tree Collapse file tree 1 file changed +17
-9
lines changed Original file line number Diff line number Diff line change 8080 </ span >
8181
8282 < span id =iframe-show class =radio >
83- < input type =checkbox checked >
83+ < input type =checkbox >
8484 iframe
8585 </ span >
8686
200200
201201 //btn.wrap(chk.wrap);
202202
203+ create . iframe ( ) ;
204+
203205
204206 } //initdom
205207
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
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
You can’t perform that action at this time.
0 commit comments