This commit is contained in:
parent
3d613067a3
commit
1945b53080
1 changed files with 5 additions and 2 deletions
|
@ -1,11 +1,14 @@
|
||||||
<script>
|
<script>
|
||||||
import { onMount } from 'svelte';
|
import { onMount } from 'svelte';
|
||||||
import { fade } from 'svelte/transition';
|
import { fade } from 'svelte/transition';
|
||||||
|
import { dev } from '@app/environment'
|
||||||
|
|
||||||
let visible = true;
|
let visible = dev ? false : true;
|
||||||
let time = 1000;
|
let time = 2000;
|
||||||
|
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
|
if(dev) return
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
visible = false;
|
visible = false;
|
||||||
}, time);
|
}, time);
|
||||||
|
|
Loading…
Reference in a new issue