made sure getting 10k list is synchronous

This commit is contained in:
Jack 2020-06-28 23:26:58 +01:00
parent 9d5333108b
commit 958596578d

View file

@ -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];
}
})
}