From 7c6e634b54c940ca6918b6c7d8b5009a0466a941 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Acid=20Chicken=20=28=E7=A1=AB=E9=85=B8=E9=B6=8F=29?= Date: Sat, 25 Aug 2018 17:06:40 +0900 Subject: [PATCH] Update boot.js --- src/client/app/boot.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/client/app/boot.js b/src/client/app/boot.js index 86d48faf1..2ee771868 100644 --- a/src/client/app/boot.js +++ b/src/client/app/boot.js @@ -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