mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-08 05:03:39 +08:00
setting to custom if config is not default
This commit is contained in:
parent
a02772b4d4
commit
43562ea375
1 changed files with 4 additions and 0 deletions
|
|
@ -440,11 +440,15 @@ $(".pageAccount .topFilters .button.currentConfigFilter").click(() => {
|
|||
if ([15, 30, 60, 120].includes(Config.time)) {
|
||||
const configTime = Config.time as MonkeyTypes.DefaultTimeModes;
|
||||
filters["time"][configTime] = true;
|
||||
} else {
|
||||
filters["time"]["custom"] = true;
|
||||
}
|
||||
} else if (Config.mode === "words") {
|
||||
if ([10, 25, 50, 100, 200].includes(Config.words)) {
|
||||
const configWords = Config.words as MonkeyTypes.DefaultWordsModes;
|
||||
filters["words"][configWords] = true;
|
||||
} else {
|
||||
filters["words"]["custom"] = true;
|
||||
}
|
||||
} else if (Config.mode === "quote") {
|
||||
(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue