From a0aac5c2eaaba062e3394b3ebe8e390b034a472c Mon Sep 17 00:00:00 2001 From: Miodec Date: Sat, 8 Jan 2022 16:38:23 +0100 Subject: [PATCH] resetting custom classes before running checks that return from the function --- src/js/test/funbox.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/test/funbox.js b/src/js/test/funbox.js index 8289d068a..6a8b1fc03 100644 --- a/src/js/test/funbox.js +++ b/src/js/test/funbox.js @@ -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();