mirror of
https://github.com/lissy93/networking-toolbox.git
synced 2026-11-28 00:10:03 +03:00
Fixes analytics still loading when disabled via env vars (#52)
This commit is contained in:
1 file changed
+2
-1
@@ -1,6 +1,7 @@
|
||||
<script lang="ts">
|
||||
import { onMount } from 'svelte';
|
||||
import { page } from '$app/stores';
|
||||
import { browser } from '$app/environment';
|
||||
import '../styles/base.scss';
|
||||
import '../styles/variables.scss';
|
||||
import '../styles/themes.scss';
|
||||
@@ -331,7 +332,7 @@
|
||||
{/if}
|
||||
|
||||
<!-- Analytics (Plausible or custom) -->
|
||||
{#if ANALYTICS_ENABLED}
|
||||
{#if browser && ANALYTICS_ENABLED}
|
||||
<script defer data-domain={ANALYTICS_DOMAIN} src={ANALYTICS_DSN}></script>
|
||||
{/if}
|
||||
|
||||
|
||||
Reference in new issue
Block a user