From 5c6f29575927c2769587d87287405f70c2beb41c Mon Sep 17 00:00:00 2001 From: Jack Date: Sun, 16 Aug 2020 23:05:52 +0100 Subject: [PATCH] fixed config loading not working --- public/js/userconfig.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public/js/userconfig.js b/public/js/userconfig.js index 71dafbc8c..f99c1eede 100644 --- a/public/js/userconfig.js +++ b/public/js/userconfig.js @@ -159,10 +159,10 @@ function applyConfig(configObj) { setSmoothLineScroll(configObj.smoothLineScroll, true); setShowLiveWpm(configObj.showLiveWpm, true); setShowTimerProgress(configObj.showTimerProgress, true); - setAlwaysShowDecimalPlaces(config.alwaysShowDecimalPlaces, true); - setAlwaysShowWordsHistory(config.alwaysShowWordsHistory, true); - setPlaySoundOnError(config.playSoundOnError, true); - setStopOnError(config.stopOnError, true); + setAlwaysShowDecimalPlaces(configObj.alwaysShowDecimalPlaces, true); + setAlwaysShowWordsHistory(configObj.alwaysShowWordsHistory, true); + setPlaySoundOnError(configObj.playSoundOnError, true); + setStopOnError(configObj.stopOnError, true); // if ( // configObj.resultFilters !== null && // configObj.resultFilters !== undefined