mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-20 07:16:17 +08:00
fixed a bug where the config would not be loaded correctly
This commit is contained in:
parent
547e56150a
commit
eb25f7b48d
|
@ -21,14 +21,14 @@ function loadConfigFromCookie() {
|
|||
let newConfig = $.cookie('config');
|
||||
if (newConfig) {
|
||||
newConfig = JSON.parse(newConfig);
|
||||
setTheme(newConfig.theme);
|
||||
setQuickTabMode(newConfig.quickTab);
|
||||
setPunctuation(newConfig.punctuation);
|
||||
setKeyTips(newConfig.showKeyTips);
|
||||
changeTimeConfig(newConfig.time);
|
||||
changeWordCount(newConfig.words);
|
||||
changeMode(newConfig.mode);
|
||||
config = newConfig;
|
||||
setTheme(config.theme);
|
||||
setQuickTabMode(config.quickTab);
|
||||
setPunctuation(config.punctuation);
|
||||
setKeyTips(config.showKeyTips);
|
||||
changeTimeConfig(config.time);
|
||||
changeWordCount(config.words);
|
||||
changeMode(config.mode);
|
||||
restartTest();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue