Commit 1098137f authored by gijs's avatar gijs
Browse files

Silly

parent c4d77297
......@@ -115,7 +115,7 @@
images = document.querySelectorAll('img');
function downsampleNext (images, index) {
if (images < images.length) {
if (index < images.length) {
const img = images[index];
if (img.naturalWidth > (img.width * resampleThreshold)) {
const scale = (img.width * resolutionFactor) / img.naturalWidth,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment