fix default

This commit is contained in:
MathMan05 2025-04-09 14:55:36 -05:00
parent 07800a21b7
commit 2ede633dfa

View file

@ -238,6 +238,8 @@ class Localuser {
};
const rights = this.perminfo.user.rights || "875069521787904";
this.rights = new Rights(rights);
if (this.perminfo.user.disableColors === undefined) this.perminfo.user.disableColors = true;
}
async gottenReady(ready: readyjson): Promise<void> {
await I18n.done;
@ -1806,7 +1808,7 @@ class Localuser {
this.perminfo.user.disableColors = !t;
},
{
initState: !this.perminfo.user.disableColors,
initState: !!this.perminfo.user.disableColors,
},
);
const gifSettings = ["hover", "always", "never"] as const;