From 660202203921e8243cb65218f9b2483c54b64e03 Mon Sep 17 00:00:00 2001 From: Jack Date: Mon, 7 Dec 2020 19:23:30 +0000 Subject: [PATCH] fixed livewpm and graph with nospace --- src/js/script.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/js/script.js b/src/js/script.js index b31ff7001..26a159644 100644 --- a/src/js/script.js +++ b/src/js/script.js @@ -3014,6 +3014,9 @@ function liveWpmAndRaw() { if (wordsList[currentWordIndex] === currentInput) { correctWordChars += currentInput.length; } + if (activeFunBox === "nospace") { + spaces = 0; + } chars += currentInput.length; let testNow = performance.now(); let testSeconds = (testNow - testStart) / 1000;