mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2026-01-10 17:34:24 +08:00
resetting funbox when unsupported with zen
This commit is contained in:
parent
c86e3f64f6
commit
fc4cf43725
1 changed files with 10 additions and 1 deletions
|
|
@ -100,10 +100,19 @@ export async function activate(funbox) {
|
|||
"Current language does not support this funbox mode",
|
||||
0
|
||||
);
|
||||
activate("none", null);
|
||||
setFunbox("none", null);
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (Config.mode === "zen" && (funbox == "layoutfluid")) {
|
||||
Notifications.add(
|
||||
`Zen mode does not support the ${funbox} funbox`,
|
||||
0
|
||||
);
|
||||
setFunbox("none", null);
|
||||
TestLogic.restart();
|
||||
return;
|
||||
}
|
||||
$("#funBoxTheme").attr("href", ``);
|
||||
$("#words").removeClass("nospace");
|
||||
// if (funbox === "none") {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue