From ed3672cb544efc5e5460cca6a7ba62d55c3bc41a Mon Sep 17 00:00:00 2001 From: Amir Raminfar Date: Wed, 13 May 2020 19:12:54 -0700 Subject: [PATCH] Reverts onmessage --- assets/components/LogEventSource.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/components/LogEventSource.vue b/assets/components/LogEventSource.vue index d6900ffc..b9d2be4d 100644 --- a/assets/components/LogEventSource.vue +++ b/assets/components/LogEventSource.vue @@ -48,10 +48,10 @@ export default { this.messages.push(...this.buffer); this.buffer = []; }; - this.es.addEventListener("message", (e) => { + this.es.onmessage = (e) => { this.buffer.push(this.parseMessage(e.data)); flushBuffer(); - }); + }; this.$once("hook:beforeDestroy", () => this.es.close()); }, async loadOlderLogs() {