fixed undefined error next to instgram thumbs
This commit is contained in:
parent
94fcde5d41
commit
ae9eaaf53d
1 changed files with 3 additions and 3 deletions
|
@ -39,7 +39,7 @@
|
||||||
function show_posts(myArr) {
|
function show_posts(myArr) {
|
||||||
var ar = myArr.graphql.user.edge_owner_to_timeline_media.edges;
|
var ar = myArr.graphql.user.edge_owner_to_timeline_media.edges;
|
||||||
var images = [];
|
var images = [];
|
||||||
var thumb_html;
|
var thumb_html = '';
|
||||||
var index = 0;
|
var index = 0;
|
||||||
|
|
||||||
ar.forEach(element => {
|
ar.forEach(element => {
|
||||||
|
@ -55,8 +55,8 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
images.forEach(e => {
|
images.forEach(e => {
|
||||||
thumb_html += '<a href="' + e.url + '"><img class="images" src="'+ e.thumb_url + '"/></a>' <!-- Hier war die class falsch zugewiesen -->
|
thumb_html += '<a href="' + e.url + '"><img class="images" src="'+ e.thumb_url + '"/></a>' // Hier war die class falsch zugewiesen
|
||||||
}); <!-- Muss hier ein ";" hin? -->
|
}); // Muss hier ein ";" hin?
|
||||||
|
|
||||||
document.getElementById('ig_container').innerHTML = thumb_html;
|
document.getElementById('ig_container').innerHTML = thumb_html;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue