From 6cfae0cdbde4778b0bd45343cfee75f3d8bc84e2 Mon Sep 17 00:00:00 2001 From: Mathium05 Date: Sat, 15 Aug 2026 15:27:26 -0500 Subject: [PATCH] fix minor typebox regression --- src/webpage/channel.ts | 4 ---- src/webpage/typeBox.ts | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/webpage/channel.ts b/src/webpage/channel.ts index 74ddf6c..8681892 100644 --- a/src/webpage/channel.ts +++ b/src/webpage/channel.ts @@ -2588,10 +2588,6 @@ class Channel extends SnowFlake { if (this.curCommand) { this.curCommand.render(TypeBox.box, this); } - TypeBox.box.style.setProperty( - "--channel-text", - JSON.stringify(I18n.channel.typebox(this.shortName)), - ); if (getMessages === undefined) { getMessages = this.type !== 2 || !this.localuser.voiceAllowed; diff --git a/src/webpage/typeBox.ts b/src/webpage/typeBox.ts index aada87a..bf6d3a3 100644 --- a/src/webpage/typeBox.ts +++ b/src/webpage/typeBox.ts @@ -153,6 +153,7 @@ export class TypeBox { for (const file of this.files) { this.addFile(file, false); } + this.box.style.setProperty("--channel-text", JSON.stringify(I18n.channel.typebox(c.shortName))); } static changeWrite() { if (!this.localuser?.focusChannel) return;