mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-11 08:14:11 +08:00
fixed potential soft lock when quote length is -1
This commit is contained in:
parent
6fb0991ecf
commit
ae211bface
1 changed files with 1 additions and 0 deletions
|
@ -765,6 +765,7 @@ function setTimeConfig(time, nosave) {
|
|||
function setQuoteLength(len, nosave, multipleMode) {
|
||||
if (Array.isArray(len)) {
|
||||
//config load
|
||||
if (len.length === 1 && len[0] === -1) len = [1];
|
||||
ConfigSet.quoteLength(len);
|
||||
} else {
|
||||
if (!Array.isArray(ConfigSet.quoteLength)) ConfigSet.quoteLength([]);
|
||||
|
|
Loading…
Reference in a new issue