Compare commits

...

2 Commits

Author SHA1 Message Date
Raven Scott
b46ca2b2df repair icons for report peers 2024-06-09 05:35:37 -04:00
Raven Scott
55d00260fa fix user icons between peers 2024-06-09 05:09:39 -04:00

4
app.js
View File

@ -386,7 +386,9 @@ function onMessageAdded(from, message, avatar) {
$div.classList.add('message'); $div.classList.add('message');
const $img = document.createElement('img'); const $img = document.createElement('img');
$img.src = avatar || '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'); $img.classList.add('avatar');
$div.appendChild($img); $div.appendChild($img);