delete console log and made a line break

This commit is contained in:
Данил 2022-12-17 16:23:05 +03:00
parent c4c937f6d9
commit 2ff004f14f

View file

@ -109,8 +109,10 @@ function wallpaperLoad(data) {
ids[id]['copyright'] = ids[id]['copyright'] === undefined ? "NASA" : ids[id]['copyright']; 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']; const explanation = ids[id]['explanation'].length > 200 ?
console.log(explanation); ids[id]['explanation'].slice(0, 200) + "..." :
ids[id]['explanation'];
if (ids[id]['media_type'] === "image") { if (ids[id]['media_type'] === "image") {
title.innerHTML = `<h5 class="modal-title">${ids[id]['title']}</h5>`; title.innerHTML = `<h5 class="modal-title">${ids[id]['title']}</h5>`;
img.innerHTML = ` img.innerHTML = `