From 2ff004f14fc02185a6d4291e9a61886f5db0317b Mon Sep 17 00:00:00 2001 From: Redume Date: Sat, 17 Dec 2022 16:23:05 +0300 Subject: [PATCH] delete console log and made a line break --- web/static/scripts/gallery.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/web/static/scripts/gallery.js b/web/static/scripts/gallery.js index 371fc77..4300371 100644 --- a/web/static/scripts/gallery.js +++ b/web/static/scripts/gallery.js @@ -109,8 +109,10 @@ function wallpaperLoad(data) { ids[id]['copyright'] = ids[id]['copyright'] === undefined ? "NASA" : ids[id]['copyright']; - const explanation = ids[id]['explanation'].length > 200 ? ids[id]['explanation'].slice(0, 200) + "..." : ids[id]['explanation']; - console.log(explanation); + const explanation = ids[id]['explanation'].length > 200 ? + ids[id]['explanation'].slice(0, 200) + "..." : + ids[id]['explanation']; + if (ids[id]['media_type'] === "image") { title.innerHTML = ``; img.innerHTML = `