Compare commits

...

1 Commits

Author SHA1 Message Date
0af52a3764 Fixed bug where messages dont appear if user has no avatar 2024-07-12 22:29:13 +03:00

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();