Skip to content

Commit 901adc7

Browse files
save file
1 parent 6820591 commit 901adc7

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

utils/misc/nodejs-terminal/v2.0/nodejs-terminal-v2.0.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,8 @@
339339
<script>
340340
console.clear();
341341

342+
(async()=>{
343+
342344
var [{Terminal},{FitAddon},{WebContainer}] = await Promise.all(
343345
import('https://cdn.jsdelivr.net/npm/@xterm/xterm/+esm'),
344346
import('https://cdn.jsdelivr.net/npm/@xterm/addon-fit/+esm'),
@@ -380,6 +382,9 @@
380382
term.resize();
381383
term.focus();
382384

385+
})();
386+
387+
383388
</script>
384389

385390
</html>

0 commit comments

Comments
 (0)