Adding analytics component to the base layout

This commit is contained in:
Bradley Shellnut 2022-10-29 12:48:57 -05:00 committed by GitHub
parent cfbbf7debd
commit cfa9a71503
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,6 +4,7 @@
import { fade } from 'svelte/transition';
import debounce from 'just-debounce-it';
import { Toy } from '@leveluptuts/svelte-toy';
import Analytics from '$lib/components/analytics.svelte';
import Header from '$lib/components/header/Header.svelte';
import Loading from '$lib/components/loading.svelte';
import Transition from '$lib/components/transition/index.svelte';
@ -44,6 +45,7 @@
const dev = process.env.NODE_ENV !== 'production';
</script>
<Analytics />
{#if dev}
<Toy register={{ boredState, collectionStore, gameStore, toast }} />
{/if}