From 03913e88fd1bc6b55f6041b7cd30f66571ec0739 Mon Sep 17 00:00:00 2001 From: Jack Date: Tue, 11 Aug 2020 14:58:42 +0100 Subject: [PATCH] updated custom time and word count errors --- public/js/script.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/public/js/script.js b/public/js/script.js index e1567a5e1..1d541f6bc 100644 --- a/public/js/script.js +++ b/public/js/script.js @@ -3024,10 +3024,10 @@ function applyMode2Popup() { showNotification("Stay safe and take breaks!", 3000); } } else { - showNotification("Custom time can only be set between 1 and 3600", 3000); + showNotification("Custom time must be larger than 1", 3000); } } else if (mode == "words") { - if (val !== null && !isNaN(val) && val > 0 && val <= 10000) { + if (val !== null && !isNaN(val) && val > 0) { changeWordCount(val); manualRestart = true; restartTest(); @@ -3035,10 +3035,7 @@ function applyMode2Popup() { showNotification("Stay safe and take breaks!", 3000); } } else { - showNotification( - "Custom word amount can only be set between 1 and 10000", - 3000 - ); + showNotification("Custom word amount must be larger than 1", 3000); } }