mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-22 05:26:14 +08:00
removed console logs
This commit is contained in:
parent
e541fbaf53
commit
2d52e7fd9a
2 changed files with 0 additions and 6 deletions
|
@ -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) => {
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue