We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c94cac8 commit 6a718ccCopy full SHA for 6a718cc
1 file changed
js/demo/demo.js
@@ -218,7 +218,7 @@ $(function () {
218
if (img) {
219
updateResults(
220
loadImage.scale(img, {
221
- maxWidth: result.width() * window.devicePixelRatio,
+ maxWidth: result.width() * (window.devicePixelRatio || 1),
222
pixelRatio: window.devicePixelRatio,
223
orientation: Number($('#orientation').val()) || true,
224
imageSmoothingEnabled: $('#image-smoothing').is(':checked')
0 commit comments