diff --git a/assets/components/LogEventSource.vue b/assets/components/LogEventSource.vue index b9d2be4d..d6900ffc 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.onmessage = (e) => { + this.es.addEventListener("message", (e) => { this.buffer.push(this.parseMessage(e.data)); flushBuffer(); - }; + }); this.$once("hook:beforeDestroy", () => this.es.close()); }, async loadOlderLogs() {