getAlby / nostr-wallet-connect

Nostr Wallet Connect (NIP-47) application to allow apps to connect to your node
https://nwc.getalby.com
Apache License 2.0
101 stars 29 forks source link

Bug: no event is fired if window.opener does not exist #157

Open rolznz opened 7 months ago

rolznz commented 7 months ago

I think we should fire to both the window and window.opener. This will work with React Native / cases where the new app page is opened from a parent window and not a popup.

See https://github.com/getAlby/nostr-wallet-connect/blob/main/views/apps/create.html#L76

rolznz commented 7 months ago

A temporary hack for consumers is to execute this line in the window that opens the new NWC connection page: window.opener = window