diff --git a/resources/assets/scripts/components/server/subpages/Console.vue b/resources/assets/scripts/components/server/subpages/Console.vue index a833ba927..d338752d6 100644 --- a/resources/assets/scripts/components/server/subpages/Console.vue +++ b/resources/assets/scripts/components/server/subpages/Console.vue @@ -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) { - 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'); }, /**