Fixed bug where messages dont appear if user has no avatar

This commit is contained in:
MrMasrozYTLIVE 2024-07-12 22:29:13 +03:00
parent 7c874fab21
commit 0af52a3764

4
app.js
View File

@ -992,6 +992,10 @@ function updatePortInUrl(url) {
console.error('Invalid URL format:', url);
return '';
}
if (url === '') {
console.error('Empty URL:', url);
return '';
}
const urlObj = new URL(url);
urlObj.port = servePort;
return urlObj.toString();