web/chore: tabs to spaces

idk how this happened :-3
This commit is contained in:
dumbmoron 2024-07-04 22:27:38 +00:00
parent a04f7a9eee
commit e224cf1f33
No known key found for this signature in database

View file

@ -1,16 +1,16 @@
<script lang="ts"> <script lang="ts">
import { goto } from '$app/navigation'; import { goto } from '$app/navigation';
import { page } from '$app/stores'; import { page } from '$app/stores';
import { defaultSettingsPage } from '$lib/settings/defaults'; import { defaultSettingsPage } from '$lib/settings/defaults';
$: { $: {
if ( if (
$page.error?.message === 'Not Found' $page.error?.message === 'Not Found'
&& $page.url.pathname.startsWith('/settings') && $page.url.pathname.startsWith('/settings')
) { ) {
goto(defaultSettingsPage(), { replaceState: true }); goto(defaultSettingsPage(), { replaceState: true });
} }
} }
</script> </script>
<!-- TODO: nicer errors --> <!-- TODO: nicer errors -->