Skip to content

Commit f9b8ddc

Browse files
committed
Let the daemon send the initial logs
1 parent d284083 commit f9b8ddc

File tree

1 file changed

+1
-7
lines changed
  • resources/assets/scripts/components/server/subpages

1 file changed

+1
-7
lines changed

resources/assets/scripts/components/server/subpages/Console.vue

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,9 @@
6161
},
6262
6363
/**
64-
* Listen for specific socket.io emits from the server.
64+
* Listen for specific socket emits from the server.
6565
*/
6666
sockets: {
67-
'server log': function (lines: Array<string>) {
68-
lines.forEach(data => data.split(/\n/g).forEach(line => this.terminal && this.terminal.writeln(line + '\u001b[0m')));
69-
},
70-
7167
'console output': function (line: string) {
7268
this.terminal && this.terminal.writeln(line.replace(/(?:\r\n|\r|\n)$/im, '') + '\u001b[0m');
7369
},
@@ -105,8 +101,6 @@
105101
// @ts-ignore
106102
this.terminal.fit();
107103
this.terminal.clear();
108-
109-
this.$socket().emit('send logs');
110104
},
111105
112106
/**

0 commit comments

Comments
 (0)