removed console logs

This commit is contained in:
Miodec 2022-09-05 13:14:17 +02:00
parent e541fbaf53
commit 2d52e7fd9a
2 changed files with 0 additions and 6 deletions

View file

@ -929,9 +929,7 @@ $("#wordsInput").on("beforeinput", (event) => {
}
});
let avg = 0;
$("#wordsInput").on("input", (event) => {
const start = performance.now();
if (!event.originalEvent?.isTrusted || TestUI.testRestarting) {
(event.target as HTMLInputElement).value = " ";
return;
@ -1062,9 +1060,6 @@ $("#wordsInput").on("input", (event) => {
).selectionEnd = (event.target as HTMLInputElement).value.length;
}
}, 0);
const end = performance.now();
avg = Math.floor(end - start + avg) / 2;
console.log("input avg", avg, "live input", end - start);
});
$("#wordsInput").on("focus", (event) => {

View file

@ -277,7 +277,6 @@ export function calculateWpmAndRaw(): MonkeyTypes.WordsPerMinuteAndRaw {
const raw = Math.round(((chars + spaces) * (60 / testSeconds)) / 5);
const end = performance.now();
avg = (end - start + avg) / 2;
console.log("wpm avg", avg, "live wpm", end - start);
return {
wpm: wpm,
raw: raw,