browser message
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
import { useSearchParams } from "runed/kit";
|
import { useSearchParams } from "runed/kit";
|
||||||
import { onMount } from "svelte";
|
import { onMount } from "svelte";
|
||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
|
import { browser } from "$app/environment";
|
||||||
import { invalidate } from "$app/navigation";
|
import { invalidate } from "$app/navigation";
|
||||||
import SongEntry from "$lib/components/SongEntry.svelte";
|
import SongEntry from "$lib/components/SongEntry.svelte";
|
||||||
import { db as clientDb } from "$lib/db/client-db";
|
import { db as clientDb } from "$lib/db/client-db";
|
||||||
@@ -208,8 +209,12 @@
|
|||||||
</ul>
|
</ul>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{#if data.malResponse?.paging?.next}
|
{#if browser && data.malResponse?.paging?.next}
|
||||||
<p class="mt-6 text-sm text-muted-foreground">
|
<p class="mt-6 text-sm text-muted-foreground">
|
||||||
More results exist on MAL, but pagination is not wired yet.
|
More results exist on MAL, but pagination is not wired yet.
|
||||||
</p>
|
</p>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
{#if !browser}
|
||||||
|
Loading stuff...
|
||||||
|
{/if}
|
||||||
|
|||||||
Reference in New Issue
Block a user