forked from snxraven/LinkUp-P2P-Chat
Merge branch 'main' of https://git.ssh.surf/snxraven/LinkUp-P2P-Chat
This commit is contained in:
commit
9f5d5b7dba
6
app.js
6
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);
|
||||
|
||||
@ -454,4 +456,4 @@ function updatePortInUrl(url) {
|
||||
return urlObject.toString();
|
||||
}
|
||||
|
||||
initialize();
|
||||
initialize();
|
Loading…
Reference in New Issue
Block a user