We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89247e0 commit 82217a7Copy full SHA for 82217a7
utils/editors/js-console/html/output/v2.0/output-v2.0.html
@@ -78,7 +78,9 @@
78
var shadow;
79
80
var output;
81
-
+ var iframe;
82
+
83
84
85
var chk = {};
86
var btn = {};
@@ -199,7 +201,11 @@
199
201
console.log('run.iframe');
200
202
var resolve,promise=new Promise(res=>resolve=res);
203
- var iframe = document.createElement('iframe');
204
+ if(iframe){
205
+ iframe.remove();
206
+ }
207
208
+ iframe = document.createElement('iframe');
209
iframe.srcdoc = '';
210
iframe.onload = onload;
211
root.append(iframe);
@@ -234,6 +240,7 @@
234
240
235
241
obj.kill = function(){
236
242
243
237
244
238
245
}//kill
239
246
0 commit comments