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 9ae0473f80
commit a6a51b850a
No known key found for this signature in database

View file

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