Fix nip 55
This commit is contained in:
parent
4ee05fd21c
commit
25f7d6892d
1 changed files with 7 additions and 0 deletions
|
|
@ -6,11 +6,14 @@
|
||||||
import type {Unsubscriber} from "svelte/store"
|
import type {Unsubscriber} from "svelte/store"
|
||||||
import {get} from "svelte/store"
|
import {get} from "svelte/store"
|
||||||
import {App, type URLOpenListenerEvent} from "@capacitor/app"
|
import {App, type URLOpenListenerEvent} from "@capacitor/app"
|
||||||
|
import {Capacitor} from "@capacitor/core"
|
||||||
|
import {NostrSignerPlugin} from "nostr-signer-capacitor-plugin"
|
||||||
import {dev} from "$app/environment"
|
import {dev} from "$app/environment"
|
||||||
import {goto} from "$app/navigation"
|
import {goto} from "$app/navigation"
|
||||||
import {page} from "$app/stores"
|
import {page} from "$app/stores"
|
||||||
import {context as pomadeContext} from "@pomade/core"
|
import {context as pomadeContext} from "@pomade/core"
|
||||||
import {sync, throttled} from "@welshman/store"
|
import {sync, throttled} from "@welshman/store"
|
||||||
|
import {setNip55Plugin} from "@welshman/signer"
|
||||||
import * as domain from "@welshman/domain"
|
import * as domain from "@welshman/domain"
|
||||||
import * as util from "@welshman/util"
|
import * as util from "@welshman/util"
|
||||||
import * as lib from "@welshman/lib"
|
import * as lib from "@welshman/lib"
|
||||||
|
|
@ -68,6 +71,10 @@
|
||||||
pomadeContext.setSignerUrls(env.POMADE_SIGNERS)
|
pomadeContext.setSignerUrls(env.POMADE_SIGNERS)
|
||||||
pomadeContext.setArgonWorker(import("@pomade/core/argon-worker.js?worker"))
|
pomadeContext.setArgonWorker(import("@pomade/core/argon-worker.js?worker"))
|
||||||
|
|
||||||
|
if (Capacitor.isNativePlatform()) {
|
||||||
|
setNip55Plugin(NostrSignerPlugin)
|
||||||
|
}
|
||||||
|
|
||||||
// Handle a deep link (universal/app link or custom scheme). Used for both
|
// Handle a deep link (universal/app link or custom scheme). Used for both
|
||||||
// warm-start links (via the appUrlOpen event) and cold-start links (via
|
// warm-start links (via the appUrlOpen event) and cold-start links (via
|
||||||
// getLaunchUrl below) so the invite relay/claim query params are preserved
|
// getLaunchUrl below) so the invite relay/claim query params are preserved
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue