Handle missing/non-existent images

This commit is contained in:
foxster-mp4
2023-05-28 10:50:43 -07:00
parent 49f9a6ed9e
commit cfb4d987c5
4 changed files with 13 additions and 5 deletions

View File

@@ -18,7 +18,7 @@ function main(json) {
if (app.screenshotURLs) {
html += `
<div class="screenshots">`;
for (let i = 0; i < app.screenshotURLs.length, i < 2; i++) html += `
for (let i = 0; i < app.screenshotURLs.length, i < 2; i++) if (app.screenshotURLs[i]) html += `
<img src="${app.screenshotURLs[i]}" class="screenshot">`;
html += `
</div>`;