show alert when no signing method is found

This commit is contained in:
2025-04-14 21:36:09 +02:00
parent 9215143b35
commit 8de62b400e

View File

@@ -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;