From c7f142e1bd9fcb3dcd9552fb2a1dc7958054965f Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 9 Mar 2026 08:27:47 -0700 Subject: use Capacitor bridge registerPlugin instead of npm package --- src/routes/(app)/fund/[id]/+page.svelte | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/routes/(app)/fund/[id]/+page.svelte b/src/routes/(app)/fund/[id]/+page.svelte index 14586701..fc3e9bc8 100644 --- a/src/routes/(app)/fund/[id]/+page.svelte +++ b/src/routes/(app)/fund/[id]/+page.svelte @@ -15,9 +15,8 @@ import { t } from "$lib/translations"; import { copy, sats, loc, post } from "$lib/utils"; import { loginRedirect } from "$lib/store"; - import { registerPlugin } from "@capacitor/core"; - const Hce = (window as any).Capacitor ? registerPlugin("Hce") : null; + const Hce = (window as any).Capacitor?.registerPlugin?.("Hce"); let { data }: any = $props(); -- cgit v1.2.3