resetting funbox when unsupported with zen

This commit is contained in:
Miodec 2021-06-12 14:50:00 +01:00
parent c86e3f64f6
commit fc4cf43725

View file

@ -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") {