Why Nostr? What is Njump?
2024-05-09 17:52:15
in reply to

Kyhou Dalk on Nostr: Yours opened fine but mine don't work When I try to add something I got this error: ...

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
<anonymous> 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
<anonymous> https://www.unpkg.com/nostr-login@latest/dist/unpkg.js:17
EventListener.handleEvent* https://www.unpkg.com/nostr-login@latest/dist/unpkg.js:17
<anonymous> https://www.unpkg.com/nostr-login@latest/dist/unpkg.js:17
<anonymous> 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)
}
Author Public Key
npub1vcq8nv3lctr8ctk2dp7h3e0su4f7gklgx4dlm2375l6u69hvuh6syj3d9l