chore: avoid SubtleCrypto

This commit is contained in:
2023-03-16 17:10:17 +00:00
parent 84ad3556a7
commit 424c7c79d7
3 changed files with 7 additions and 7 deletions

View File

@ -35,7 +35,7 @@ export default function useEventPublisher() {
async function signEvent(ev: NEvent): Promise<NEvent> {
if (hasNip07 && !privKey) {
ev.Id = await ev.CreateId();
ev.Id = ev.CreateId();
const tmpEv = (await barrierNip07(() => window.nostr.signEvent(ev.ToObject()))) as RawEvent;
return new NEvent(tmpEv as TaggedRawEvent);
} else if (privKey) {