From 6c6089709b5b3e96ac510f28c0543aa61a96545e Mon Sep 17 00:00:00 2001 From: Terncode Date: Fri, 20 Nov 2026 17:52:19 +0100 Subject: [PATCH] Fix chat log init in production build --- src/ts/components/shared/chat-log/chat-log.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ts/components/shared/chat-log/chat-log.ts b/src/ts/components/shared/chat-log/chat-log.ts index cb848e2..0ede8f9 100644 --- a/src/ts/components/shared/chat-log/chat-log.ts +++ b/src/ts/components/shared/chat-log/chat-log.ts @@ -243,7 +243,7 @@ export class ChatLog implements AfterViewInit, OnDestroy, DoCheck { local: ChatLogMessage[] = []; party: ChatLogMessage[] = []; whisper: ChatLogMessage[] = []; - filterColor = this.inactiveBg; + filterColor: string; unread = 0; private subscriptions: Subscription[] = []; private startX = 0; @@ -263,6 +263,7 @@ export class ChatLog implements AfterViewInit, OnDestroy, DoCheck { private element: ElementRef, private zone: NgZone, ) { + this.filterColor = this.inactiveBg; // TODO: just put reference to chatlog on game ??? this.subscriptions.push( game.onFrame.subscribe(() => {