nip07: catch signEvent error
This commit is contained in:
parent
85f526d1d4
commit
e5837ebefb
1 changed files with 1 additions and 1 deletions
|
@ -183,7 +183,7 @@ const connectTimelineStream = (
|
||||||
break;
|
break;
|
||||||
case 'nostr.sign':
|
case 'nostr.sign':
|
||||||
(async () => {
|
(async () => {
|
||||||
const event = await window.nostr?.signEvent(JSON.parse(data.payload));
|
const event = await window.nostr?.signEvent(JSON.parse(data.payload)).catch(() => undefined);
|
||||||
|
|
||||||
if (event) {
|
if (event) {
|
||||||
websocket.send(JSON.stringify({ event: 'nostr.sign', payload: JSON.stringify(event) }));
|
websocket.send(JSON.stringify({ event: 'nostr.sign', payload: JSON.stringify(event) }));
|
||||||
|
|
Loading…
Reference in a new issue