Add splash on production build
Some checks failed
ci/woodpecker/push/build Pipeline failed

This commit is contained in:
Alessio Davoli 2023-12-12 17:31:40 +01:00
parent 3d613067a3
commit 1945b53080

View file

@ -1,11 +1,14 @@
<script>
import { onMount } from 'svelte';
import { fade } from 'svelte/transition';
import { dev } from '@app/environment'
let visible = true;
let time = 1000;
let visible = dev ? false : true;
let time = 2000;
onMount(() => {
if(dev) return
setTimeout(() => {
visible = false;
}, time);