Merge pull request #2476 from acid-chicken/patch-4

Fix #2392
This commit is contained in:
syuilo 2018-08-25 19:37:35 +09:00 committed by GitHub
commit 8ed95ce620

View File

@ -51,9 +51,10 @@
}
}
if (settings) {
if (settings.device.lang) lang = settings.device.lang;
}
if (settings &&
settings.device.lang &&
LANGS.includes(settings.device.lang))
lang = settings.device.lang;
//#endregion
// Detect the user agent