This commit is contained in:
parent
3d613067a3
commit
1945b53080
1 changed files with 5 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue