mirror of https://github.com/keeweb/keeweb.git
fixed loading locale on startup
This commit is contained in:
parent
ab46c0d08b
commit
c85b2c75f7
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue