mirror of
https://github.com/danbulant/Mangades
synced 2026-07-06 19:40:54 +00:00
fix builds
This commit is contained in:
parent
69465c0f8b
commit
b1264dfaae
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@
|
||||||
import type { load } from "./+page";
|
import type { load } from "./+page";
|
||||||
export var data: Awaited<ReturnType<typeof load>>;
|
export var data: Awaited<ReturnType<typeof load>>;
|
||||||
|
|
||||||
var name: string = data.url.searchParams.get("search") || "";
|
var name: string = typeof window === "undefined" ? "" : data.url.searchParams.get("search") || "";
|
||||||
$: if(typeof window !== "undefined") {
|
$: if(typeof window !== "undefined") {
|
||||||
const url = new URL(window.location.toString());
|
const url = new URL(window.location.toString());
|
||||||
url.searchParams.set("search", name || "");
|
url.searchParams.set("search", name || "");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue