From ae9eaaf53d37a8f41d49a6ddf182dcae90974268 Mon Sep 17 00:00:00 2001 From: BuildTools Date: Sun, 11 Oct 2020 23:25:42 +0200 Subject: [PATCH] fixed undefined error next to instgram thumbs --- brc_static/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/brc_static/index.html b/brc_static/index.html index 69ee650..4608786 100644 --- a/brc_static/index.html +++ b/brc_static/index.html @@ -39,7 +39,7 @@ function show_posts(myArr) { var ar = myArr.graphql.user.edge_owner_to_timeline_media.edges; var images = []; - var thumb_html; + var thumb_html = ''; var index = 0; ar.forEach(element => { @@ -55,8 +55,8 @@ }); images.forEach(e => { - thumb_html += '' - }); + thumb_html += '' // Hier war die class falsch zugewiesen + }); // Muss hier ein ";" hin? document.getElementById('ig_container').innerHTML = thumb_html; }