How is this fixed in the code? https://jsfiddle.net/a6dp1soy/
To reproduce error, click on the X Button
First click on the play svg, then the X button.
const resetVideos = document.querySelectorAll(".exit");
resetVideos.forEach(function resetVideoHandler(video) {
video.addEventListener("click", function resetVideoHandler() {
video.parentElement.player.destroy();
console.log("hit")
});
})