fix: do not write Bye Bye!

parent 83ef09fb
...@@ -97,7 +97,7 @@ export class ElementTermComponent implements OnInit, AfterViewInit { ...@@ -97,7 +97,7 @@ export class ElementTermComponent implements OnInit, AfterViewInit {
TermWS.on('logout', function (data) { TermWS.on('logout', function (data) {
if (data['room'] === NavList.List[that.index].room) { if (data['room'] === NavList.List[that.index].room) {
NavList.List[this.index].connected = false; NavList.List[this.index].connected = false;
this.term.write('\r\n\x1b[31mBye Bye!\x1b[m\r\n'); // this.term.write('\r\n\x1b[31mBye Bye!\x1b[m\r\n');
} }
}); });
TermWS.on('room', function (data) { TermWS.on('room', function (data) {
...@@ -109,7 +109,7 @@ export class ElementTermComponent implements OnInit, AfterViewInit { ...@@ -109,7 +109,7 @@ export class ElementTermComponent implements OnInit, AfterViewInit {
TerminalDisconnect() { TerminalDisconnect() {
NavList.List[this.index].connected = false; NavList.List[this.index].connected = false;
this.term.write('\r\n\x1b[31mBye Bye!\x1b[m\r\n'); // this.term.write('\r\n\x1b[31mBye Bye!\x1b[m\r\n');
TermWS.emit('logout', NavList.List[this.index].room); TermWS.emit('logout', NavList.List[this.index].room);
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment