Skip to content

Commit 1f159a3

Browse files
save file
1 parent bb39267 commit 1f159a3

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

utils/misc/nodejs-terminal/html/webcontainer-terminal/webcontainer-terminal.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
</style>
88

9-
<link rel=stylesheet href='https://cdn.jsdelivr.net/npm/@xterm/xterm@5.5.0/css/xterm.css' anonymous>
109

1110
<div id=terminal>
1211
</div>
@@ -24,7 +23,7 @@
2423

2524
var df=true,did='webcontainer-terminal';
2625

27-
var Terminal,webcontainer,FitAddon,spinner,theme,tab;
26+
var Terminal,webcontainer,FitAddon,spinner,theme,tab,link;
2827

2928
obj.initmod = function(params){
3029

@@ -35,6 +34,7 @@
3534
spinner = mod.rd(params,'spinner',spinner);
3635
theme = mod.rd(params,'theme',theme);
3736
tab = mod.rd(params,'tab',tab);
37+
link = mod.rd(params,'link',link);
3838

3939
}//initmod
4040

@@ -169,6 +169,9 @@
169169

170170
shadow = host.shadowRoot;
171171

172+
var style = document.createElement('style');
173+
style.TextContent = link;
174+
172175
terminal = $(shadow,'#terminal');
173176

174177

0 commit comments

Comments
 (0)