fixed undefined error next to instgram thumbs

This commit is contained in:
BuildTools 2020-10-11 23:25:42 +02:00
parent 94fcde5d41
commit ae9eaaf53d

View file

@ -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 += '<a href="' + e.url + '"><img class="images" src="'+ e.thumb_url + '"/></a>' <!-- Hier war die class falsch zugewiesen -->
}); <!-- Muss hier ein ";" hin? -->
thumb_html += '<a href="' + e.url + '"><img class="images" src="'+ e.thumb_url + '"/></a>' // Hier war die class falsch zugewiesen
}); // Muss hier ein ";" hin?
document.getElementById('ig_container').innerHTML = thumb_html;
}