diff --git a/tfweb/src/components/FullPageError.svelte b/tfweb/src/components/FullPageError.svelte new file mode 100644 index 0000000..595c84c --- /dev/null +++ b/tfweb/src/components/FullPageError.svelte @@ -0,0 +1,14 @@ + + +
+
+ +
+

{title}

+

{subtitle}

+
+
+
\ No newline at end of file diff --git a/tfweb/src/components/Header.svelte b/tfweb/src/components/Header.svelte index b98af39..d8b5e2f 100644 --- a/tfweb/src/components/Header.svelte +++ b/tfweb/src/components/Header.svelte @@ -7,6 +7,10 @@ import {getCookie} from "$lib/cookie"; import {setCookie} from "$lib/cookie"; import {get_user_info, renderDevMenu} from "$lib/auth"; + import {browser} from "$app/environment"; + + let loggedin; + if (browser) { loggedin = getCookie("authToken") !== "" } else { loggedin = false }; function toggleTheme() { if ($theme === "dark") { @@ -50,7 +54,13 @@