Fix hidpi detection so that it's disabled for browsers that don't support devicePixelRatio