diff --git a/AquaNet/src/App.svelte b/AquaNet/src/App.svelte index 2bc7afa1..f0f2599c 100644 --- a/AquaNet/src/App.svelte +++ b/AquaNet/src/App.svelte @@ -7,6 +7,8 @@ import Home from "./pages/Home.svelte"; import Ranking from "./pages/Ranking.svelte"; import { USER } from "./libs/sdk"; + import type { UserMe } from "./libs/generalTypes"; + import { DEFAULT_PFP, IMG_HOST } from "./libs/config"; console.log(`%c ┏━┓ ┳━┓━┓┏━ @@ -20,6 +22,9 @@ -webkit-text-fill-color: transparent;`) export let url = ""; + let me: UserMe + + if (USER.isLoggedIn()) USER.me().then(m => me = m).catch(e => console.error(e)) let path = window.location.pathname; @@ -34,7 +39,11 @@ home