Lib: Migrate to page from $app/state
All checks were successful
Build Formula11 Docker Image / pocketbase-docker (push) Successful in 27s

This commit is contained in:
2025-03-15 12:08:18 +01:00
parent 6b3c0716b0
commit 5da7cfa089

View File

@ -1,10 +1,10 @@
<script lang="ts">
import { page } from "$app/stores";
import { page } from "$app/state";
import type { Snippet } from "svelte";
import { popup, type PopupSettings } from "@skeletonlabs/skeleton";
const is_at_path = (path: string): boolean => {
const pathname: string = $page.url.pathname;
const pathname: string = page.url.pathname;
// return pathname === path;
return pathname.endsWith(path);
};