diff --git a/src/web/app/client/script.js b/src/web/app/client/script.js index aafd91748a..1ad45b333e 100644 --- a/src/web/app/client/script.js +++ b/src/web/app/client/script.js @@ -5,7 +5,7 @@ const head = document.getElementsByTagName('head')[0]; // Detect user language - let lang = ((navigator.languages && navigator.languages[0]) || navigator.language).split('-')[0].toLowerCase(); + let lang = navigator.language.split('-')[0]; if (!/^(en|ja)$/.test(lang)) lang = 'en'; // Detect user agent