mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-17 11:06:17 +08:00
no config save pooling on localhost
This commit is contained in:
parent
c6de5c98ae
commit
c232d3f0ba
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ async function saveToDatabase(key: keyof MonkeyTypes.Config): Promise<void> {
|
|||
configToSend = {} as MonkeyTypes.Config;
|
||||
clearTimeout(saveTimeout as NodeJS.Timeout);
|
||||
saveTimeout = null;
|
||||
}, 3000);
|
||||
}, window.location.hostname === "localhost" ? 0 : 3000);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue