Why Nostr? What is Njump?
2024-01-01 23:10:47

no_name on Nostr: cors cares how you write javascript same result, different approach, first one ...

cors cares how you write javascript
same result, different approach,
first one however is not allowed because security! what?

cors error, doesnt work:

let el = document.createElement(type)
el.id = event.id + "_" + index
el.onload = media_load
link_el.append(el.outerHTML)
container.append(link_el)

vs

this one works, no problem firefox:

let el = document.createElement(type)
el.id = event.id + "_" + index
link_el.innerHTML += el.outerHTML
container.append(link_el)
let media_el = document.getElementById(el.id)
media_el.onload = media_load
Author Public Key
npub146y59dkatpwkx0ncs9u34vhmm60dedmdla0s8zy8yw22pqfj4huq36dp2y