We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b869ff8 commit 9912be3Copy full SHA for 9912be3
utils/editors/js-console/html/output-console/v2.0/output-console-v2.0.html
@@ -285,8 +285,15 @@
285
iframe = document.createElement('iframe');
286
obj.iframe = iframe;
287
iframe.sandbox = 'allow-scripts allow-same-origin';
288
- var html = '';
289
- iframe.srcdoc = `<script>${js}</scr`+`ipt>`;
+ var html = `
+ <script>
290
+
291
+ ${js}
292
293
+ </scr`+`ipt>
294
+ `;
295
+ var url = window.URL.createObhectURL(new Blob([html]));
296
+ iframe.src = url;
297
iframe.onload = onload;
298
cur.root.append(iframe);
299
0 commit comments