diff --git a/app.js b/app.js index b975fe3..6f29bed 100644 --- a/app.js +++ b/app.js @@ -386,7 +386,9 @@ function onMessageAdded(from, message, avatar) { $div.classList.add('message'); const $img = document.createElement('img'); - $img.src = updatePortInUrl(config.userAvatar) || 'https://via.placeholder.com/40'; // Default to a placeholder image if avatar URL is not provided + + $img.src = updatePortInUrl(avatar) || 'https://via.placeholder.com/40'; // Default to a placeholder image if avatar URL is not provided + console.log(updatePortInUrl(avatar)) $img.classList.add('avatar'); $div.appendChild($img);