Fix a bug with locale setting loading from localStorage

This commit is contained in:
Lucas Verney 2018-07-31 16:48:02 +02:00
parent d2bae9e532
commit a6808d6d07
1 changed files with 2 additions and 2 deletions

View File

@ -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) {