Skip to content

Commit

Permalink
fix(disclaimer): only show disclaimer if PUBLIC_APP_DISCLAIMER is 1 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
nsarrazin authored Jul 25, 2024
1 parent 7d3eb76 commit 7692f71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import titleUpdate from "$lib/stores/titleUpdate";
import DisclaimerModal from "$lib/components/DisclaimerModal.svelte";
import ExpandNavigation from "$lib/components/ExpandNavigation.svelte";
import { PUBLIC_APP_DISCLAIMER } from "$env/static/public";
export let data;
Expand Down Expand Up @@ -182,7 +183,7 @@
{/if}
</svelte:head>

{#if !$settings.ethicsModalAccepted && $page.url.pathname !== `${base}/privacy`}
{#if !$settings.ethicsModalAccepted && $page.url.pathname !== `${base}/privacy` && PUBLIC_APP_DISCLAIMER === "1"}
<DisclaimerModal />
{/if}

Expand Down

0 comments on commit 7692f71

Please sign in to comment.