How to get the zoom level of browser??? I have tried many pattrens
console.log("document:" + $(document).width()); // same
console.log("whole width:" + $(window).width()); //same
console.log("innerWidth:" + $(window).innerWidth()); //same
console.log("outerWidth:" + $(window).outerWidth()); //same
console.log("devicePixelRatio:" + window.devicePixelRatio);
devicePixelRatio
looks work but in my chrome browser, it default 2.
I am not sure why this is 2....