fixed config loading not working

This commit is contained in:
Jack 2020-08-16 23:05:52 +01:00
parent 63b21f63dc
commit 5c6f295759

View file

@ -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