mirror of
https://github.com/wukko/cobalt.git
synced 2025-02-03 17:06:21 +01:00
web/chore: tabs to spaces
idk how this happened :-3
This commit is contained in:
parent
a04f7a9eee
commit
e224cf1f33
1 changed files with 11 additions and 11 deletions
|
@ -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…
Reference in a new issue