Skip to content

Commit

Permalink
Only use plausible if PUBLIC_ORIGIN is set (huggingface#814)
Browse files Browse the repository at this point in the history
  • Loading branch information
nsarrazin authored Feb 12, 2024
1 parent fead39f commit 450bfce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
href="{PUBLIC_ORIGIN || $page.url.origin}{base}/{PUBLIC_APP_ASSETS}/manifest.json"
/>

{#if PUBLIC_PLAUSIBLE_SCRIPT_URL}
{#if PUBLIC_PLAUSIBLE_SCRIPT_URL && PUBLIC_ORIGIN}
<script
defer
data-domain={new URL(PUBLIC_ORIGIN).hostname}
Expand Down

0 comments on commit 450bfce

Please sign in to comment.