Let the daemon send the initial logs

This commit is contained in:
Dane Everitt 2019-05-27 18:03:23 -07:00
parent d284083d20
commit f9b8ddc917
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53

View file

@ -61,13 +61,9 @@
},
/**
* Listen for specific socket.io emits from the server.
* Listen for specific socket emits from the server.
*/
sockets: {
'server log': function (lines: Array<string>) {
lines.forEach(data => data.split(/\n/g).forEach(line => this.terminal && this.terminal.writeln(line + '\u001b[0m')));
},
'console output': function (line: string) {
this.terminal && this.terminal.writeln(line.replace(/(?:\r\n|\r|\n)$/im, '') + '\u001b[0m');
},
@ -105,8 +101,6 @@
// @ts-ignore
this.terminal.fit();
this.terminal.clear();
this.$socket().emit('send logs');
},
/**