From 544d7506684488773d62b44653190351188b9958 Mon Sep 17 00:00:00 2001 From: Jack Date: Mon, 2 Nov 2020 01:10:04 +0000 Subject: [PATCH] set mode once when loading config --- public/js/userconfig.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/userconfig.js b/public/js/userconfig.js index d99e6bc66..5911f1c5b 100644 --- a/public/js/userconfig.js +++ b/public/js/userconfig.js @@ -831,7 +831,7 @@ function changeTimeConfig(time, nosave) { time = 15; } time = parseInt(time); - changeMode("time", nosave); + if (!nosave) changeMode("time", nosave); config.time = time; $("#top .config .time .text-button").removeClass("active"); if (![15, 30, 60, 120].includes(time)) { @@ -865,7 +865,7 @@ function changeWordCount(wordCount, nosave) { wordCount = 10; } wordCount = parseInt(wordCount); - changeMode("words", nosave); + if (!nosave) changeMode("words", nosave); config.words = wordCount; $("#top .config .wordCount .text-button").removeClass("active"); if (![10, 25, 50, 100, 200].includes(wordCount)) {