connect icon indicating copy to clipboard operation
connect copied to clipboard

Detect if running in a browser and override the `window.nostr` object

Open tiero opened this issue 2 years ago • 2 comments

The method should map the connect.getPublicKey() and connect.signEvent(evt) to the equivalent of the NIP07 window.nostr object

tiero avatar Jan 29 '23 22:01 tiero

Hey! is this issue still open? would love to work on this can you please guide me through it.

sarthak13gupta avatar Apr 16 '23 10:04 sarthak13gupta

Hey @sarthak13gupta! Yes this is def open.

I think there could be many ways and I didn't think about it extensively, but the idea would make sure to check if you are in a browser ie. if window !== undefiend if yes you set imperatively window.nostr object with connect.getPublicKey() and connect.signEvent(evt)

tiero avatar Apr 16 '23 13:04 tiero