nsarrazin HF staff commited on
Commit
450bfce
1 Parent(s): fead39f

Only use plausible if PUBLIC_ORIGIN is set (#814)

Browse files
Files changed (1) hide show
  1. src/routes/+layout.svelte +1 -1
src/routes/+layout.svelte CHANGED
@@ -157,7 +157,7 @@
157
  href="{PUBLIC_ORIGIN || $page.url.origin}{base}/{PUBLIC_APP_ASSETS}/manifest.json"
158
  />
159
 
160
- {#if PUBLIC_PLAUSIBLE_SCRIPT_URL}
161
  <script
162
  defer
163
  data-domain={new URL(PUBLIC_ORIGIN).hostname}
 
157
  href="{PUBLIC_ORIGIN || $page.url.origin}{base}/{PUBLIC_APP_ASSETS}/manifest.json"
158
  />
159
 
160
+ {#if PUBLIC_PLAUSIBLE_SCRIPT_URL && PUBLIC_ORIGIN}
161
  <script
162
  defer
163
  data-domain={new URL(PUBLIC_ORIGIN).hostname}