I have an event listener that looks like:
window.addEventListener("resize", function(data){
console.log(data);
// Do something
});
Is there anyway to get the before resize innerWidth
/ innerHeight
in the above callback function? I went through the data
object in the above code and didn't find anything there.