aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-03-09 08:27:47 -0700
committerAdam Soltys <[email protected]>2026-03-09 08:27:47 -0700
commitc7f142e1bd9fcb3dcd9552fb2a1dc7958054965f (patch)
treec43e7a19e0890d3ce2e790ea3106a0bd117f9f7f
parent511b90510a5821073ce3b9f499186a3b3d7bc589 (diff)
downloadcoinos-ui-c7f142e1bd9fcb3dcd9552fb2a1dc7958054965f.tar.gz
coinos-ui-c7f142e1bd9fcb3dcd9552fb2a1dc7958054965f.zip
use Capacitor bridge registerPlugin instead of npm package
-rw-r--r--src/routes/(app)/fund/[id]/+page.svelte3
1 files changed, 1 insertions, 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();