This commit is contained in:
ThatOneCalculator 2023-11-24 18:06:24 -08:00
parent a8b33b5415
commit a256f48b74
No known key found for this signature in database
GPG Key ID: 8703CACD01000000

View File

@ -25,9 +25,11 @@
//#region Detect language & fetch translations
const v = localStorage.getItem("v") || VERSION;
const supportedLangs = []
if (LANGS != null) {
supportedLangs.add(...LANGS)
let supportedLangs = []
try {
supportedLangs = LANGS;
} catch {
console.log("LANGS not found");
};
let lang = localStorage.getItem("lang");
if (lang == null || !supportedLangs.includes(lang)) {