mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-22 00:06:16 +08:00
made sure getting 10k list is synchronous
This commit is contained in:
parent
9d5333108b
commit
958596578d
|
@ -225,11 +225,12 @@ function initWords() {
|
|||
showBackgroundLoader();
|
||||
$.ajax({
|
||||
url: "js/english_10k.json",
|
||||
async: false
|
||||
}).then(data => {
|
||||
hideBackgroundLoader();
|
||||
async: false,
|
||||
success: function (data) {
|
||||
hideBackgroundLoader();
|
||||
words['english_10k'] = data;
|
||||
language = words[config.language];
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue