window.devicePixelRatio polyfill
import "@mrhenry/core-web/modules/devicePixelRatio";
browsers
-
Firefox:<18
-
Firefox Android:<18
-
IE:6 - 10
-
Safari:4.0 - 9.1
-
iOS Safari:<9.3
notes
- This polyfill just sets `devicePixelRatio` to 1 without attempting to measure it.
- Older versions of Firefox are known to incorrectly alter the DPR on user zoom, but we don't (currently) correct for this