Skip to content

Commit bdbf1da

Browse files
save file
1 parent 7664f7f commit bdbf1da

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,12 +545,19 @@
545545

546546
menu_callback['https-server'] = async function(){
547547

548+
if(!tabs.cur.view){
549+
log.red('no active terminal');
550+
return;
551+
}
552+
548553
var cwd = tabs.cur.view.terminal.shell.cwd;
549554
if(cwd===null){
550555
term.writeln.red('can only install https-server relative to workdir');
551556
return;
552557
}
553558

559+
var term = tabs.cur.view.terminal.term;
560+
554561
var s;
555562
term.writeln('');
556563
term.write.green('installing https-server ... ');

0 commit comments

Comments
 (0)