mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 19:38:24 +00:00
cfb81b7895
chromium may report float device pixel ratio below 1.5 that is still clearly retina: ``` window.devicePixelRatio 1.4999998807907104 ``` We used to round this down to 1 and not provide these browsers with retina avatars. New algorithm is much more forgiving, anything over 1.1 gets 2x images, anything over 2.1 gets 3x images.