I have a modal pop up function on my website, but i don't want this to run if the browser is smaller than 480px. I have found that if I put an if statement such as:
if (window.innerWidth && window.innerWidth > 480) {
run function()
}
Then it should run only if the browsers innerWidth is > 480. However its not working and I think its because I have page scaling on this website. Can any one help me with a conditional statement if page scaling is on? Thanks.