From b41bc01017fb6f1ca8ed2176a51123fa983f6a90 Mon Sep 17 00:00:00 2001 From: Jack92829 Date: Tue, 19 Jan 2021 12:50:15 +1100 Subject: [PATCH] Disabled the repeat test button in zen mode --- src/js/script.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/js/script.js b/src/js/script.js index 184f0e0bd..c17b241d3 100644 --- a/src/js/script.js +++ b/src/js/script.js @@ -4797,12 +4797,20 @@ $(document.body).on("click", "#showWordHistoryButton", () => { }); $(document.body).on("click", "#restartTestButtonWithSameWordset", () => { + if (config.mode == "zen") { + Notifications.add("Repeat test disabled in zen mode"); + return; + } manualRestart = true; restartTest(true); }); $(document).on("keypress", "#restartTestButtonWithSameWordset", (event) => { + if (config.mode == "zen") { + Notifications.add("Repeat test disabled in zen mode"); + return; + } if (event.keyCode == 13) { restartTest(true); }