Skip to content
Snippets Groups Projects
Commit 972c6614 authored by Lukas Gygi's avatar Lukas Gygi
Browse files

fixed array destructuring

parent ca3ebd63
No related branches found
No related tags found
1 merge request!49i18n
......@@ -24,7 +24,7 @@ function changeLanguage(lang) {
function getLang() {
let lang;
if (navigator.languages != undefined) lang = navigator.languages[0];
if (navigator.languages !== undefined) [lang] = navigator.languages;
else lang = navigator.language;
if (lang.indexOf('de') !== -1) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment