device-pixel-ratio-detector
v0.0.1
Published
An EventEmitter to detect window.devicePixelRatio changes
Downloads
64
Readme
devicePixelRatio Detector
An EventEmitter to detect window.devicePixelRatio changes
Usage
import { devicePixelRatioDetector } from './device-pixel-ratio-detector'
const detector = new devicePixelRatioDetector()
detector.on('change', devicePixelRatio => console.log(devicePixelRatio))