fix
This commit is contained in:
parent
a8b33b5415
commit
a256f48b74
@ -25,9 +25,11 @@
|
|||||||
//#region Detect language & fetch translations
|
//#region Detect language & fetch translations
|
||||||
const v = localStorage.getItem("v") || VERSION;
|
const v = localStorage.getItem("v") || VERSION;
|
||||||
|
|
||||||
const supportedLangs = []
|
let supportedLangs = []
|
||||||
if (LANGS != null) {
|
try {
|
||||||
supportedLangs.add(...LANGS)
|
supportedLangs = LANGS;
|
||||||
|
} catch {
|
||||||
|
console.log("LANGS not found");
|
||||||
};
|
};
|
||||||
let lang = localStorage.getItem("lang");
|
let lang = localStorage.getItem("lang");
|
||||||
if (lang == null || !supportedLangs.includes(lang)) {
|
if (lang == null || !supportedLangs.includes(lang)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user