diff --git a/src/routes/Settings.svelte b/src/routes/Settings.svelte index 7dcd41a..7a8b921 100644 --- a/src/routes/Settings.svelte +++ b/src/routes/Settings.svelte @@ -18,11 +18,9 @@ } let authToken: string; - $: { - if (browser) { - authToken = document.cookie.split("=")[document.cookie.split("=").length - 1]; - $AuthTokenStore = authToken; - } + if (browser) { + authToken = document.cookie.split("=")[document.cookie.split("=").length - 1]; + $AuthTokenStore = authToken; } const toggleSettings = () => {