Stackerstan / interfarce

An interface to the Mindmachine
Mozilla Public License 2.0
2 stars 4 forks source link

problem: 2cant use window.nostr to sign #23

Closed shaibearary closed 1 year ago

shaibearary commented 1 year ago

solution : as in the code

Hi @stanstacks @bitkarrot I tried to solve this problem in the past days. My way is to add a variable usenox2s at local storage and before sending the event, it will go to local storage to find this varible first, if it is true it will use window.nostr.signEvent otherwise follow the original way of encrypting event. I am not sure if this is the reasonable way so i only modify the event publisher at account.js eg. function setBio, Do you have time to help check if its correct or not?

Thanks!

shaibearary commented 1 year ago

2