diff options
| author | Adam Soltys <[email protected]> | 2026-03-09 08:27:47 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-03-09 08:27:47 -0700 |
| commit | c7f142e1bd9fcb3dcd9552fb2a1dc7958054965f (patch) | |
| tree | c43e7a19e0890d3ce2e790ea3106a0bd117f9f7f | |
| parent | 511b90510a5821073ce3b9f499186a3b3d7bc589 (diff) | |
| download | coinos-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.svelte | 3 |
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(); |
