From ffabf2241340ffe0d47f7b7eaa3da84a5f6a5644 Mon Sep 17 00:00:00 2001 From: "Dev. Gautam Kumar" <111997815+devsdenepal@users.noreply.github.com> Date: Wed, 17 Jan 2024 15:07:23 +0000 Subject: [PATCH] image problem solved --- assets/js/article.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/assets/js/article.js b/assets/js/article.js index 38225e5..65605aa 100644 --- a/assets/js/article.js +++ b/assets/js/article.js @@ -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; }