show alert when no signing method is found
This commit is contained in:
@@ -57,7 +57,12 @@ export async function signEvent(loginType: string | null, event: NostrEvent): Pr
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
if(window.nostr) {
|
||||||
eventSigned = await window.nostr.signEvent(event);
|
eventSigned = await window.nostr.signEvent(event);
|
||||||
|
} else {
|
||||||
|
alert('No signing method found.')
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
console.log(eventSigned);
|
console.log(eventSigned);
|
||||||
return eventSigned;
|
return eventSigned;
|
||||||
|
|||||||
Reference in New Issue
Block a user