Skip to content

Commit

Permalink
Added env variable for hiding intro modal
Browse files Browse the repository at this point in the history
  • Loading branch information
atrincas committed Dec 26, 2024
1 parent fffec17 commit c51cd5b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c51cd5b

Please sign in to comment.