hotfix: fixed thread focus booting back to timeline while logged in,

width in chromium browsers
This commit is contained in:
ari melody 2024-07-02 20:54:41 +01:00
parent 4686a1307f
commit f5676f5b7a
Signed by: ari
GPG key ID: CF99829C92678188
4 changed files with 3 additions and 25 deletions

View file

@ -1,6 +1,7 @@
<script>
import { client } from '$lib/client/client.js';
import * as api from '$lib/client/api.js';
import { logged_in } from '$lib/stores/user.js';
import { get } from 'svelte/store';
import { goto, afterNavigate } from '$app/navigation';
import { base } from '$app/paths'
@ -11,9 +12,7 @@
export let data;
let error = false;
if (!get(client).instance || !get(client).user) {
goto("/");
}
if (!get(logged_in)) goto("/");
let previous_page = base;