From 02fb8096c13577979eb4a66c29efc7959b49956b Mon Sep 17 00:00:00 2001 From: Jack Date: Sat, 30 May 2020 14:05:32 +0100 Subject: [PATCH] fixed an issue where the caret would remain flashing --- public/js/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/script.js b/public/js/script.js index 7f7727d2d..1bc6f70dc 100644 --- a/public/js/script.js +++ b/public/js/script.js @@ -78,6 +78,7 @@ function getLastChar(word) { function setFocus(foc) { if (foc) { // focus = true; + stopCaretAnimation(); $("#top").addClass("focus"); $("#bottom").addClass("focus"); $("body").css("cursor", "none"); @@ -1154,7 +1155,6 @@ $(document).keypress(function(event) { console.log("Analytics unavailable"); } testActive = true; - stopCaretAnimation(); testStart = Date.now(); if (config.mode == "time") { showTimer();