Compare commits
No commits in common. "b46ca2b2df44dcc97e230c062453024d62c5542b" and "1c07819d91160634e4978bf57ec57b20c56f7659" have entirely different histories.
b46ca2b2df
...
1c07819d91
4
app.js
4
app.js
@ -386,9 +386,7 @@ 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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user