Update boot.js

This commit is contained in:
Acid Chicken (硫酸鶏) 2018-08-25 17:06:40 +09:00 committed by GitHub
parent 990a583e5e
commit 0ebe801af4
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.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