strues/retinajs

devicePixelRatio rounding

jaykay-design opened this issue · 0 comments

I got some strange device pixel ratios like 2.0000000298023224

I fixed it with changing line 24 to:

var environment = hasWindow ? Math.round(window.devicePixelRatio * 10) / 10 || 1 : 1;