mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-09-10 16:48:40 +08:00
loading result filters if they are not present. should close #771
This commit is contained in:
parent
a989f502ef
commit
411e575ff3
1 changed files with 4 additions and 2 deletions
|
@ -1130,7 +1130,9 @@ function setFilter(group, filter, set) {
|
|||
|
||||
function showActiveFilters() {
|
||||
let aboveChartDisplay = {};
|
||||
|
||||
if (config.resultFilters == undefined) {
|
||||
loadResultFiltersFromCookie();
|
||||
}
|
||||
Object.keys(config.resultFilters).forEach((group) => {
|
||||
aboveChartDisplay[group] = {
|
||||
all: true,
|
||||
|
@ -1310,7 +1312,7 @@ $(".pageAccount .topFilters .button.currentConfigFilter").click((e) => {
|
|||
config.resultFilters.time[config.time] = true;
|
||||
} else if (config.mode === "words") {
|
||||
config.resultFilters.words[config.words] = true;
|
||||
} else if (config.mode === "quote"){
|
||||
} else if (config.mode === "quote") {
|
||||
Object.keys(config.resultFilters.quoteLength).forEach((ql) => {
|
||||
config.resultFilters.quoteLength[ql] = true;
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue