stuff
This commit is contained in:
parent
2112f730a8
commit
0eedef4f20
|
@ -1 +1,3 @@
|
|||
topButtons: none
|
||||
disableChat: false
|
||||
winter: false
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
}
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue