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;
|
tileServer = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
locale = localStorage.getItem('locale');
|
locale = loadDataFromStorage('locale');
|
||||||
if (!messages[locale]) {
|
if (!(locale in messages)) {
|
||||||
locale = null;
|
locale = null;
|
||||||
}
|
}
|
||||||
if (!locale) {
|
if (!locale) {
|
||||||
|
Loading…
Reference in New Issue
Block a user