From c51cd5b600f90a9ebaa3bc17cc7475423d5e3fac Mon Sep 17 00:00:00 2001 From: atrincas Date: Thu, 26 Dec 2024 12:41:12 +0100 Subject: [PATCH] Added env variable for hiding intro modal --- client/src/lib/utils.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/src/lib/utils.ts b/client/src/lib/utils.ts index af13e998..fd3436fd 100644 --- a/client/src/lib/utils.ts +++ b/client/src/lib/utils.ts @@ -56,7 +56,9 @@ class IntroModalManager { public showIntroModal(): boolean { if (this.isServer) return false; - return !localStorage.getItem("hideIntroModal"); + return ( + !!process.env.HIDE_INTRO_MODAL || !localStorage.getItem("hideIntroModal") + ); } public setHideIntroModal(): void {