Fix a bug with locale setting loading from localStorage
This commit is contained in:
parent
d2bae9e532
commit
a6808d6d07
@ -64,8 +64,8 @@ if (storageAvailable('localStorage')) {
|
||||
tileServer = null;
|
||||
}
|
||||
|
||||
locale = localStorage.getItem('locale');
|
||||
if (!messages[locale]) {
|
||||
locale = loadDataFromStorage('locale');
|
||||
if (!(locale in messages)) {
|
||||
locale = null;
|
||||
}
|
||||
if (!locale) {
|
||||
|
Loading…
Reference in New Issue
Block a user