mirror of
https://github.com/wukko/cobalt.git
synced 2025-05-25 02:52:11 +02:00
web/chore: tabs to spaces
idk how this happened :-3
This commit is contained in:
parent
9ae0473f80
commit
a6a51b850a
@ -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 -->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user