Skip to content

Commit

Permalink
Fix NWC pubkey not set in browser
Browse files Browse the repository at this point in the history
  • Loading branch information
ekzyis committed Nov 29, 2024
1 parent 6b3ea8b commit 0ae5bb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ndk/src/nwc/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export class NDKNwc extends EventEmitter {

const nwc = new NDKNwc({
ndk,
pubkey: u.host ?? u.pathname,
pubkey: u.host || u.pathname,
relayUrls: u.searchParams.getAll("relay") ?? [""],
secret: u.searchParams.get("secret") ?? "",
});
Expand Down

0 comments on commit 0ae5bb2

Please sign in to comment.