Skip to content

Commit

Permalink
image problem solved
Browse files Browse the repository at this point in the history
  • Loading branch information
devsdenepal committed Jan 17, 2024
1 parent 9e60474 commit ffabf22
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions assets/js/article.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ const final_url = '/article.html?view='+sub_url;
if(page.image_url == "N/A"){
document.getElementById("img").src = "./favicon.ico"
}
if(page.image_url !== "N/A"){
document.getElementById("img").src = page.image_url;
}
if(page.content == "loading..."){
document.getElementById('content').innerText = page.description;
}
Expand Down

0 comments on commit ffabf22

Please sign in to comment.