mirror of
https://github.com/coracle-social/coracle.git
synced 2024-09-29 08:21:20 +00:00
Suppress nip46 exceptions to make it compatible with how nip07 is handled (#310)
This commit is contained in:
parent
5e1df84f3a
commit
0ead7b9663
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user