From fc4cf43725dc0e0aee5c1159741335dc5b122ee1 Mon Sep 17 00:00:00 2001 From: Miodec Date: Sat, 12 Jun 2021 14:50:00 +0100 Subject: [PATCH] resetting funbox when unsupported with zen --- src/js/test/funbox.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/js/test/funbox.js b/src/js/test/funbox.js index 60addd553..cc249b8c9 100644 --- a/src/js/test/funbox.js +++ b/src/js/test/funbox.js @@ -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") {