resetting custom classes before running checks that return from the function

This commit is contained in:
Miodec 2022-01-08 16:38:23 +01:00
parent 4f1e6b2285
commit a0aac5c2ea

View file

@ -100,6 +100,9 @@ export async function activate(funbox) {
let funboxInfo = await Misc.getFunbox(funbox);
$("#funBoxTheme").attr("href", ``);
$("#words").removeClass("nospace");
$("#words").removeClass("arrows");
if (await Misc.getCurrentLanguage().ligatures) {
if (funbox == "choo_choo" || funbox == "earthquake") {
Notifications.add(
@ -123,9 +126,6 @@ export async function activate(funbox) {
return;
}
}
$("#funBoxTheme").attr("href", ``);
$("#words").removeClass("nospace");
$("#words").removeClass("arrows");
// if (funbox === "none") {
reset();