mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-14 07:54:41 +08:00
Fix reset resetting even when not nessesary
This commit is contained in:
parent
86cbae594b
commit
55150031ff
1 changed files with 1 additions and 0 deletions
|
@ -144,6 +144,7 @@ function render() {
|
|||
|
||||
export function reset(immediate = false) {
|
||||
if (!ctx.resetTimeOut) return;
|
||||
delete ctx.resetTimeOut;
|
||||
|
||||
clearTimeout(ctx.resetTimeOut);
|
||||
const body = $(document.body);
|
||||
|
|
Loading…
Reference in a new issue