mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-10 15:54:49 +08:00
fixed shift clicking not working on active quote lengths
This commit is contained in:
parent
7b2adbc95b
commit
5876233f7c
1 changed files with 6 additions and 1 deletions
|
@ -952,7 +952,12 @@ export function setQuoteLength(len, nosave, multipleMode) {
|
|||
}
|
||||
len = parseInt(len);
|
||||
if (multipleMode) {
|
||||
if (!config.quoteLength.includes(len)) config.quoteLength.push(len);
|
||||
if (!config.quoteLength.includes(len)) {
|
||||
config.quoteLength.push(len);
|
||||
} else {
|
||||
if (config.quoteLength.length > 1)
|
||||
config.quoteLength = config.quoteLength.filter((ql) => ql !== len);
|
||||
}
|
||||
} else {
|
||||
config.quoteLength = [len];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue