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
2 changed files with 5 additions and 2 deletions

4
app.js
View File

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

View File

@ -11,8 +11,7 @@
"minWidth": 955, "minWidth": 955,
"minHeight": 547, "minHeight": 547,
"width": 955 "width": 955
}, }
"links": ["http://127.0.0.1", "http://localhost", "https://ka-f.fontawesome.com", "https://cdn.jsdelivr.net", "https://cdnjs.cloudflare.com"]
}, },
"license": "Apache-2.0", "license": "Apache-2.0",
"devDependencies": { "devDependencies": {