Lib: Migrate to page from $app/state
All checks were successful
Build Formula11 Docker Image / pocketbase-docker (push) Successful in 27s
All checks were successful
Build Formula11 Docker Image / pocketbase-docker (push) Successful in 27s
This commit is contained in:
@ -1,10 +1,10 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { page } from "$app/stores";
|
import { page } from "$app/state";
|
||||||
import type { Snippet } from "svelte";
|
import type { Snippet } from "svelte";
|
||||||
import { popup, type PopupSettings } from "@skeletonlabs/skeleton";
|
import { popup, type PopupSettings } from "@skeletonlabs/skeleton";
|
||||||
|
|
||||||
const is_at_path = (path: string): boolean => {
|
const is_at_path = (path: string): boolean => {
|
||||||
const pathname: string = $page.url.pathname;
|
const pathname: string = page.url.pathname;
|
||||||
// return pathname === path;
|
// return pathname === path;
|
||||||
return pathname.endsWith(path);
|
return pathname.endsWith(path);
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user