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

Reply to this note

Please Login to reply.

Discussion

No replies yet.