Yours opened fine but mine don't work

When I try to add something I got this error:

Uncaught (in promise) TypeError: event is undefined

addTagArray https://crafters.amethyst.social/js/nostr.js:127

add https://crafters.amethyst.social/js/nostr.js:136

initEditors https://crafters.amethyst.social/js/nostr.js:557

initAdd https://crafters.amethyst.social/js/ui-utils.js:92

jQuery 8

initAdd https://crafters.amethyst.social/js/ui-utils.js:91

initEditors https://crafters.amethyst.social/js/nostr.js:557

https://crafters.amethyst.social/js/nostr.js:580

onAuth https://www.unpkg.com/nostr-login@latest/dist/unpkg.js:17

setExtension https://www.unpkg.com/nostr-login@latest/dist/unpkg.js:17

NostrLoginInitializer https://www.unpkg.com/nostr-login@latest/dist/unpkg.js:17

emit https://www.unpkg.com/nostr-login@latest/dist/unpkg.js:1

setExtensionReadPubkey https://www.unpkg.com/nostr-login@latest/dist/unpkg.js:17

trySetExtensionForPubkey https://www.unpkg.com/nostr-login@latest/dist/unpkg.js:17

switchAccount https://www.unpkg.com/nostr-login@latest/dist/unpkg.js:17

init https://www.unpkg.com/nostr-login@latest/dist/unpkg.js:17

https://www.unpkg.com/nostr-login@latest/dist/unpkg.js:17

EventListener.handleEvent* https://www.unpkg.com/nostr-login@latest/dist/unpkg.js:17

https://www.unpkg.com/nostr-login@latest/dist/unpkg.js:17

https://www.unpkg.com/nostr-login@latest/dist/unpkg.js:17

async function addTagArray(event, tagArray) {

let tags = [...event.tags] //THIS LINE

if (tagArray) {

tags.push(tagArray)

}

signBroadcastAndUpdateScreen(tags)

}

Reply to this note

Please Login to reply.

Discussion

No replies yet.