From b83110a8dccb9615ff56787e4358323151ffc453 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 9 Mar 2026 08:30:41 -0700 Subject: use JavascriptInterface for HCE instead of Capacitor plugin --- src/routes/(app)/fund/[id]/+page.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/routes/(app)/fund/[id]/+page.svelte b/src/routes/(app)/fund/[id]/+page.svelte index fc3e9bc8..8bd8489a 100644 --- a/src/routes/(app)/fund/[id]/+page.svelte +++ b/src/routes/(app)/fund/[id]/+page.svelte @@ -16,7 +16,7 @@ import { copy, sats, loc, post } from "$lib/utils"; import { loginRedirect } from "$lib/store"; - const Hce = (window as any).Capacitor?.registerPlugin?.("Hce"); + const Hce = (window as any).CoinosHce; let { data }: any = $props(); @@ -43,14 +43,14 @@ function enableHce() { if (!Hce) return; const url = `${$page.url.origin}/api/lnurlw/${id}`; - Hce.setUrl({ url }); + Hce.setUrl(url); hceActive = true; toast.push("NFC armed — ready to tap"); } function disableHce() { if (!Hce) return; - Hce.setUrl({ url: "https://coinos.io" }); + Hce.setUrl("https://coinos.io"); hceActive = false; } -- cgit v1.2.3