mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-22 08:16:20 +08:00
added a popup to track down a bug
This commit is contained in:
parent
a547e520a8
commit
c45dba6062
|
@ -641,8 +641,20 @@ export function restart(withSameWordset = false, nosave = false, event) {
|
|||
let testSeconds = TestStats.calculateTestSeconds(performance.now());
|
||||
let afkseconds = TestStats.calculateAfkSeconds();
|
||||
// incompleteTestSeconds += ;
|
||||
TestStats.incrementIncompleteSeconds(testSeconds - afkseconds);
|
||||
let tt = testSeconds - afkseconds;
|
||||
console.log(
|
||||
`increasing incomplete time by ${tt}s (${testSeconds}s - ${afkseconds}s afk)`
|
||||
);
|
||||
TestStats.incrementIncompleteSeconds(tt);
|
||||
TestStats.incrementRestartCount();
|
||||
if (tt > 600) {
|
||||
Notifications.add(
|
||||
`Your time typing just increased by ${Misc.roundTo2(
|
||||
tt / 60
|
||||
)} minutes. If you think this is incorrect please contact Miodec and dont refresh the website.`,
|
||||
-1
|
||||
);
|
||||
}
|
||||
// restartCount++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue