[SSE] Fix loading region settings

This commit is contained in:
Julia Radzhabova 2019-08-13 15:40:02 +03:00
parent bb55c1ea9f
commit 481064faf5

View file

@ -446,9 +446,11 @@ Common.util.LanguageInfo = new(function() {
},
getLocalLanguageCode: function(name) {
for (var code in localLanguageName) {
if (localLanguageName[code][0].toLowerCase()===name.toLowerCase())
return code;
if (name) {
for (var code in localLanguageName) {
if (localLanguageName[code][0].toLowerCase()===name.toLowerCase())
return code;
}
}
return null;
},