fix race condition

This commit is contained in:
Danielv123 committed 2017-07-11 13:14:13 +02:00
1 parent 53af3849cc
commit cb1071fc33
1 file changed
+1
+1
View File
@@ -80,6 +80,7 @@ function getImageFromName(name){
return "https://wiki.factorio.com/images/" + capitalizeFirstLetter(replaceAll(factorioLocale["equipment-name"][name], ' ', '_').toLowerCase()) + ".png";
} else return "";
}
window.factorioLocale = {};
$.getJSON("/api/getFactorioLocale", (locale) => {
window.factorioLocale = locale;
});