Suppress nip46 exceptions to make it compatible with how nip07 is handled (#310)

This commit is contained in:
Artur Brugeman 2024-03-18 22:42:03 +01:00 committed by GitHub
parent 5e1df84f3a
commit 0ead7b9663
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -95,10 +95,11 @@ export class NostrConnectBroker extends Emitter {
window.open(auth_url, "Coracle", "width=600,height=800,popup=yes")
})
return new Promise((resolve, reject) => {
return new Promise((resolve) => {
this.once(`response-${id}`, ({result, error}) => {
if (error) {
reject(error)
logger.error(error)
resolve(undefined)
} else {
resolve(result)
}