From f9b8ddc917dc2fd42b3ed6b5b526aa58f19a3cc6 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Mon, 27 May 2019 18:03:23 -0700 Subject: [PATCH] Let the daemon send the initial logs --- .../assets/scripts/components/server/subpages/Console.vue | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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'); }, /**