Only render analytics in non-dev. Also revert game css for now.

This commit is contained in:
Bradley Shellnut 2022-10-29 17:18:17 -05:00
parent d2762b3e38
commit 226c9454c7
2 changed files with 8 additions and 6 deletions

View file

@ -83,10 +83,8 @@
}
.game-container {
display: grid;
grid-template-rows: repeat(3, minmax(50px, 200px));
place-items: center;
max-width: 100px;
display: flex;
flex-wrap: wrap;
@media (max-width: 650px) {
max-width: none;

View file

@ -4,7 +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 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';
@ -45,10 +45,14 @@
const dev = process.env.NODE_ENV !== 'production';
</script>
<Analytics />
{#if !dev}
<Analytics />
{/if}
{#if dev}
<Toy register={{ boredState, collectionStore, gameStore, toast }} />
{/if}
<Transition transition={{ type: 'fade', duration: 250 }}>
<div class="wrapper">
<Header />