Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
aliallam742 authored Jan 11, 2024
1 parent fa44a10 commit a33e99d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ function displayData(){
return new Promise(function (callback){
var cartona = ``;
var images =""
console.log(allPosts)
for(var i = 0 ; i < allPosts.length ; i++){
images=allPosts[i].urlToImage
if(images == null){
Expand Down Expand Up @@ -86,4 +87,4 @@ contries("eg")
// `
// }
// newsData.innerHTML = cartona;
// }
// }

0 comments on commit a33e99d

Please sign in to comment.