I am using window.devicePixelRatio which works on Andriod and Iphone but does not work in IE 10 Windows mobile. any alternative?
For a IE fallback, both desktop and mobile, use:
window.devicePixelRatio = window.devicePixelRatio || window.screen.deviceXDPI / window.screen.logicalXDPI;
1.4m articles
1.4m replys
5 comments
57.0k users