Only log "needed but not received" if there are any.

This commit is contained in:
voussoir 2020-12-26 12:13:54 -08:00
parent cdfa0531a2
commit 33b4799268

View file

@ -220,7 +220,10 @@ function request_more_divs()
holder.appendChild(photo_div); holder.appendChild(photo_div);
} }
photo_clipboard.apply_check_all(); photo_clipboard.apply_check_all();
console.log("Needed but not received: " + Array.from(needed)); if (needed.size > 0)
{
console.log("Needed but not received: " + Array.from(needed));
}
} }
common.post(url, data, callback); common.post(url, data, callback);
} }