From a256f48b7439f212276ad264cab97fc622686297 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Fri, 24 Nov 2023 18:06:24 -0800 Subject: [PATCH] fix --- packages/backend/src/server/web/boot.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/backend/src/server/web/boot.js b/packages/backend/src/server/web/boot.js index 0c60af4bde..1033bf1017 100644 --- a/packages/backend/src/server/web/boot.js +++ b/packages/backend/src/server/web/boot.js @@ -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)) {