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