fiatjaf / nos2x

nostr signer extension
281 stars 56 forks source link

Deconstruct values of notification config from local storage of extension #65

Closed MaySoMusician closed 3 weeks ago

MaySoMusician commented 3 weeks ago

We didn't deconstruct the values stored in the extension's local storage. This caused the L99 to always be evaluated as truthy (!!{} == true), resulting in the notifications always (annoyingly) being sent through the browser regardless of the configuration (checked or unchecked).

I simply added the process of deconstructing, the same as in other places.

fiatjaf commented 3 weeks ago

Thank you, I think this is what was annoying me horribly recently and I couldn't fix it.