aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/routes/(app)/fund/[id]/+page.svelte6
1 files changed, 3 insertions, 3 deletions
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;
}