Skip to content

Commit 4dac18d

Browse files
save file
1 parent b10fdf9 commit 4dac18d

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

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

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -180,17 +180,20 @@
180180

181181
function show(view){
182182

183-
mem.forEach(view=>{
184-
185-
view.tab.classList.remove('active');
186-
view.tab.classList.add('inactive');
187-
view.terminal.hide();
183+
mem.forEach(view2=>{
184+
185+
if(view2!==view){
186+
view.tab.classList.remove('active');
187+
view.tab.classList.add('inactive');
188+
view.terminal.hide();
189+
}else{
190+
view.tab.classList.remove('inactive');
191+
view.tab.classList.add('active');
192+
view.terminal.show();
193+
}
188194

189195
});
190196

191-
view.tab.classList.remove('inactive');
192-
view.tab.classList.add('active');
193-
view.terminal.show();
194197

195198
}//show
196199

0 commit comments

Comments
 (0)