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
1 changed files with 4 additions and 3 deletions

View File

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