Fixed bug where messages dont appear if user has no avatar
This commit is contained in:
parent
7c874fab21
commit
0af52a3764
4
app.js
4
app.js
@ -992,6 +992,10 @@ function updatePortInUrl(url) {
|
|||||||
console.error('Invalid URL format:', url);
|
console.error('Invalid URL format:', url);
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
if (url === '') {
|
||||||
|
console.error('Empty URL:', url);
|
||||||
|
return '';
|
||||||
|
}
|
||||||
const urlObj = new URL(url);
|
const urlObj = new URL(url);
|
||||||
urlObj.port = servePort;
|
urlObj.port = servePort;
|
||||||
return urlObj.toString();
|
return urlObj.toString();
|
||||||
|
Loading…
Reference in New Issue
Block a user