fiatjaf / nocomment

See a demo at https://fiatjaf.com/nostr.html
https://nocomment.pages.dev/embed.js
136 stars 17 forks source link

bug fix: safeguard threads before mapping #30

Closed bordalix closed 9 months ago

bordalix commented 9 months ago

Embeddable script was throwing an error on first run because it was running threads.map with threads undefined.

@fiatjaf please review

fiatjaf commented 9 months ago

Thank you!