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
disableChat: false
winter: false

View File

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

View File

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