Spaces:
Paused
Paused
Only use plausible if PUBLIC_ORIGIN is set (#814)
Browse files
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}
|