From 33b47992680e98e3a5e4ce0170e5ee34a03150bd Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sat, 26 Dec 2020 12:13:54 -0800 Subject: [PATCH] Only log "needed but not received" if there are any. --- frontends/etiquette_flask/templates/clipboard.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontends/etiquette_flask/templates/clipboard.html b/frontends/etiquette_flask/templates/clipboard.html index ff86d01..6fc4498 100644 --- a/frontends/etiquette_flask/templates/clipboard.html +++ b/frontends/etiquette_flask/templates/clipboard.html @@ -220,7 +220,10 @@ function request_more_divs() holder.appendChild(photo_div); } 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); }