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

View File

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