window.devicePixelRatio
// Which will return the figure 3