Skip to content

Commit

Permalink
readded # thingy
Browse files Browse the repository at this point in the history
  • Loading branch information
tizu69 authored Jan 7, 2024
1 parent ace9da9 commit b91063f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
import { onMount } from 'svelte';
onMount(() => {
if ($page.url.hash != '') {
goto(base + `/p/?id=${$page.url.hash.substring(1)}`);
return;
}
if (!$userPreferencesStore.alreadyVisited) {
userPreferencesStore.update((prev) => ({ ...prev, alreadyVisited: true }));
goto(base + '/home');
Expand Down

0 comments on commit b91063f

Please sign in to comment.