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 16520c7b4c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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