UNPKG

detect-features

Version:

Detect and report browser and hardware features.

10 lines (8 loc) 233 B
// @ts-check /** * Gets the device pixel ratio of the device * Note that different zooming levels change the device pixel ratio * * @returns {number} device pixel ratio */ export default (() => window.devicePixelRatio || 1)();