Compare commits
2 Commits
1c07819d91
...
b46ca2b2df
Author | SHA1 | Date | |
---|---|---|---|
|
b46ca2b2df | ||
|
55d00260fa |
4
app.js
4
app.js
@ -386,7 +386,9 @@ function onMessageAdded(from, message, avatar) {
|
||||
$div.classList.add('message');
|
||||
|
||||
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');
|
||||
$div.appendChild($img);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user