diff options
| -rw-r--r-- | src/routes/tools/+page.svelte | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/routes/tools/+page.svelte b/src/routes/tools/+page.svelte index b0bb5569..f4ffefd9 100644 --- a/src/routes/tools/+page.svelte +++ b/src/routes/tools/+page.svelte @@ -2,10 +2,11 @@ import ActivityHistory from '$lib/Tools/ActivityHistory.svelte'; import { todaysCharacterBirthdays } from '$lib/AniList/character'; import Wrapped from '$lib/Tools/Wrapped.svelte'; + import { browser } from '$app/environment'; export let data; - let tool: number; + let tool = browser ? Number(new URLSearchParams(window.location.search).get('tool')) || 0 : 0; </script> <p> |