Compare commits
No commits in common. "9d759e5af37a149d4c0ba53fa4016b083d5e1bc0" and "241cf62220a5ee360b1b96e0f020c19053deca32" have entirely different histories.
9d759e5af3
...
241cf62220
3
app.js
3
app.js
@ -631,7 +631,6 @@ function addFileMessage(from, fileName, fileUrl, fileType, avatar, topic) {
|
|||||||
const $img = document.createElement('img');
|
const $img = document.createElement('img');
|
||||||
$img.src = updatePortInUrl(avatar) || 'https://via.placeholder.com/40';
|
$img.src = updatePortInUrl(avatar) || 'https://via.placeholder.com/40';
|
||||||
$img.classList.add('avatar');
|
$img.classList.add('avatar');
|
||||||
$img.draggable = false;
|
|
||||||
$div.appendChild($img);
|
$div.appendChild($img);
|
||||||
|
|
||||||
const $content = document.createElement('div');
|
const $content = document.createElement('div');
|
||||||
@ -696,7 +695,6 @@ function onMessageAdded(from, message, avatar, topic, timestamp) {
|
|||||||
const $img = document.createElement('img');
|
const $img = document.createElement('img');
|
||||||
$img.src = updatePortInUrl(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
|
||||||
$img.classList.add('avatar');
|
$img.classList.add('avatar');
|
||||||
$img.draggable = false;
|
|
||||||
$div.appendChild($img);
|
$div.appendChild($img);
|
||||||
|
|
||||||
const $content = document.createElement('div');
|
const $content = document.createElement('div');
|
||||||
@ -779,7 +777,6 @@ function addAudioMessage(from, audioUrl, avatar, topic) {
|
|||||||
const $img = document.createElement('img');
|
const $img = document.createElement('img');
|
||||||
$img.src = updatePortInUrl(avatar) || 'https://via.placeholder.com/40';
|
$img.src = updatePortInUrl(avatar) || 'https://via.placeholder.com/40';
|
||||||
$img.classList.add('avatar');
|
$img.classList.add('avatar');
|
||||||
$img.draggable = false;
|
|
||||||
$div.appendChild($img);
|
$div.appendChild($img);
|
||||||
|
|
||||||
const $content = document.createElement('div');
|
const $content = document.createElement('div');
|
||||||
|
Loading…
Reference in New Issue
Block a user