aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-03-09 08:30:41 -0700
committerAdam Soltys <[email protected]>2026-03-09 08:30:41 -0700
commitb83110a8dccb9615ff56787e4358323151ffc453 (patch)
treedb1b938d208b767b06dac33456e9a189a83f05f4 /src
parentc7f142e1bd9fcb3dcd9552fb2a1dc7958054965f (diff)
downloadcoinos-ui-b83110a8dccb9615ff56787e4358323151ffc453.tar.gz
coinos-ui-b83110a8dccb9615ff56787e4358323151ffc453.zip
use JavascriptInterface for HCE instead of Capacitor plugin
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;
}