This commit is contained in:
Hri7566 2024-09-15 21:22:41 -04:00
parent 2112f730a8
commit 0eedef4f20
3 changed files with 9 additions and 2 deletions

View File

@ -1 +1,3 @@
topButtons: none topButtons: none
disableChat: false
winter: false

View File

@ -391,6 +391,7 @@ export class Socket extends EventEmitter {
let tag: Tag | undefined; let tag: Tag | undefined;
try { try {
if (typeof this.user.tag === "string")
tag = JSON.parse(this.user.tag) as Tag; tag = JSON.parse(this.user.tag) as Tag;
} catch (err) {} } catch (err) {}

View File

@ -19,12 +19,16 @@ const httpIpCache = new Map<string, number>();
interface IFrontendConfig { interface IFrontendConfig {
topButtons: "original" | "none"; topButtons: "original" | "none";
disableChat: boolean;
winter: boolean;
} }
const config = ConfigManager.loadConfig<IFrontendConfig>( const config = ConfigManager.loadConfig<IFrontendConfig>(
"config/frontend.yml", "config/frontend.yml",
{ {
topButtons: "original" topButtons: "original",
disableChat: false,
winter: false
} }
); );