How do I listen for drop of files on a whole page? I have tried something like this to stop drop (using document, document.body, window...):
document.addEventListener("drop", evt => {
evt.preventDefault();
evt.stopPropagation();
console.log("drop", evt);
debugger;
})
It does not work as I expected. If I drop an audio file on the page it will open and play.