What is Nostr?
teatwo
npub1xky…5few
2024-11-01 09:30:38
in reply to nevent1q…8ne2

teatwo on Nostr: Event design, especially with UX considerations across the signer provider ecosystem. ...

Event design, especially with UX considerations across the signer provider ecosystem.

Attaching an `on` listener to `window.nostr` seems problematic, because `window.nostr` is not a persisted object, but an object injected by a specific provider. For example, when the user wants to switch or multisig signers and the i.e. `providerChanged` or `multisigUpdated` is emitted, `window.nostr` seems like an inappropriate place.

If we consider such case, is it better to only define the standard event name, and not where to listen?
Author Public Key
npub1xkym0yaewlz0qfghtt7hjtnu28fxaa5rk3wtcek9d3x3ft2ns3lq775few