Custom devicePixelRatio change event
npm install dpr-changeSubscribe to devicePixelRatio change event
``sh`
npm i dpr-change --save
`js
import DPR from 'dpr-change';
function _handleDPRChange (ev) {
console.log(devicePixelRatio changed: ${ev.devicePixelRatio});
}
DPR.addEventListener('change', _handleDPRChange);
``