From 318c131d6b51b6bae8aaa294be64ce1b10805a16 Mon Sep 17 00:00:00 2001 From: Alex Hoyau Date: Mon, 8 Apr 2024 12:05:05 +0500 Subject: [PATCH] cleanup client side env vars --- src/ts/constants.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ts/constants.ts b/src/ts/constants.ts index aff890d1b..b76b58052 100644 --- a/src/ts/constants.ts +++ b/src/ts/constants.ts @@ -57,5 +57,7 @@ export const API_WEBSITE_META_WRITE = '/meta' // @see webpack.config.js declare const SILEX_VERSION_ENV: string export let SILEX_VERSION -try { SILEX_VERSION = SILEX_VERSION_ENV } catch (e) {} -SILEX_VERSION = SILEX_VERSION || '3.0.0' +try { SILEX_VERSION = SILEX_VERSION_ENV } catch (e) { + // fallback to default value + SILEX_VERSION = SILEX_VERSION || '3.0.0' +}