Skip to content
Snippets Groups Projects
Commit 73b01a97 authored by Jonas Zohren's avatar Jonas Zohren 💬
Browse files

fix: Envs for legal links respected

Accidentially used build time envs, instead of runtime ones.
parent b4cec585
No related branches found
No related tags found
No related merge requests found
<script lang="ts">
import '../app.scss';
import { PUBLIC_URL_PRIVACY, PUBLIC_URL_IMPRINT } from '$env/static/public';
import { env } from '$env/dynamic/public';
</script>
<header>
......@@ -36,11 +36,11 @@
<!-- svelte-ignore missing-declaration -->
<p>
<a href="#TODO" target="_blank" rel="noopener">Source Code</a>
{#if PUBLIC_URL_PRIVACY}
| <a href={PUBLIC_URL_PRIVACY} target="_blank" rel="noreferrer noopener"> Datenschutz </a>
{#if env.PUBLIC_URL_PRIVACY}
| <a href={env.PUBLIC_URL_PRIVACY} target="_blank" rel="noreferrer noopener"> Datenschutz </a>
{/if}
{#if PUBLIC_URL_IMPRINT}
| <a href={PUBLIC_URL_IMPRINT} target="_blank" rel="noreferrer noopener"> Impressum </a>
{#if env.PUBLIC_URL_IMPRINT}
| <a href={env.PUBLIC_URL_IMPRINT} target="_blank" rel="noreferrer noopener"> Impressum </a>
{/if}
</p>
<!-- svelte-ignore missing-declaration -->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment