diff --git a/src/services/nostr-connect.ts b/src/services/nostr-connect.ts index 1394126c3..c59416190 100644 --- a/src/services/nostr-connect.ts +++ b/src/services/nostr-connect.ts @@ -276,7 +276,8 @@ class NostrConnectService { fromBunkerURI(uri: string) { const url = new URL(uri); - const pubkey = url.host; + // firefox puts pubkey part in host, chrome puts pubkey in pathname + const pubkey = url.host || url.pathname.replace("//", ""); if (!isHexKey(pubkey)) throw new Error("Invalid connection URI"); const relays = url.searchParams.getAll("relay"); if (relays.length === 0) throw new Error("Missing relays");