aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/logout/done.svelte
blob: fe5263574077849dacee9800570390a5373b325b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
<script>
	import { onMount } from 'svelte';
	import { user, token } from '$lib/store';
	import { goto } from '$app/navigation';
	import { close } from '$lib/socket';

	onMount(() => {
		$token = null;
		$user = null;
		close();
	});
	goto('/');
</script>