mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-16 18:46:26 +08:00
fixed a bug where the config would not be loaded correctly
This commit is contained in:
parent
82a5778bb5
commit
0af64a71eb
1 changed files with 7 additions and 7 deletions
|
@ -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…
Add table
Reference in a new issue