mirror of
https://github.com/Terncode/pixel.horse.git
synced 2026-12-03 05:10:04 +01:00
Fix chat log init in production build
This commit is contained in:
1 parent
a95f62e236
commit
6c6089709b
1 file changed
+2
-1
@@ -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(() => {
|
||||
|
||||
Reference in new issue
Block a user