Comments (1)
hmm i could not replicate your error. this code runs for me.
signEvent will automatically add id and pubkey if they are missing. can you just try:
signEvent(event)
{
return new Promise((resolve, reject) => {
if (window.nostr) {
return window.nostr.signEvent(event).then(response => {
// Does not enter here...
//resolve(event);
}).catch(error => {
reject(error); // Error occurs here 'nos2x: undefined'
});
} else { // window.nostr undefined
reject('window.nostr undefined');
}
});
},
from nos2x.
Related Issues (20)
- relays’s input‘s bug HOT 1
- Can I manage my private key. Easily add and remove.
- How do nostr: links work? HOT 2
- Error with Yarn HOT 2
- support delegated event signing NIP-26
- Firefox: Can't save private key HOT 2
- Support for master password HOT 5
- CSS improviments HOT 2
- no license field error on build HOT 1
- read relays from metadata.nostr.com and allow saving to extension db
- I'm able to get the nos2x extension on my chrome. However, could'nt get it to log in to Toastr.space as error shows undefined. HOT 1
- unable to revoke allow policies HOT 1
- multiple profile support HOT 1
- key import HOT 1
- Denying load / Resources must be listed in the web_accessible_resources manifest key HOT 4
- Feature: read nsec from an encrypted qrcode HOT 6
- [Feature Request] Simplify Relay URL Entries
- [Feature Request] Store the nsec as ncryptsec HOT 5
- [Feature Request] Store multiple nsec HOT 2
- Problem with webextension-polyfill HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nos2x.