We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b10fdf9 commit 4dac18dCopy full SHA for 4dac18d
1 file changed
utils/misc/nodejs-terminal/html/terminal-tabs/terminal-tabs.html
@@ -180,17 +180,20 @@
180
181
function show(view){
182
183
- mem.forEach(view=>{
184
-
185
- view.tab.classList.remove('active');
186
- view.tab.classList.add('inactive');
187
- view.terminal.hide();
+ mem.forEach(view2=>{
+
+ if(view2!==view){
+ view.tab.classList.remove('active');
+ 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
+ }
194
195
});
196
- view.tab.classList.remove('inactive');
- view.tab.classList.add('active');
- view.terminal.show();
197
198
}//show
199
0 commit comments