fixed loading locale on startup

This commit is contained in:
antelle 2017-02-01 22:27:08 +01:00
parent ab46c0d08b
commit c85b2c75f7
1 changed files with 6 additions and 6 deletions

View File

@ -15,13 +15,13 @@ const SettingsManager = {
this.setFontSize(settings.get('fontSize'));
}
const locale = settings.get('locale');
if (locale) {
this.setLocale(settings.get('locale'));
} else {
try {
try {
if (locale) {
this.setLocale(settings.get('locale'));
} else {
this.setLocale(this.getBrowserLocale());
} catch (ex) {}
}
}
} catch (ex) {}
},
setTheme: function(theme) {