From 0af52a3764bb555833aea9745c75c9baa04be865 Mon Sep 17 00:00:00 2001 From: MrMasrozYTLIVE <61359286+MrMasrozYTLIVE@users.noreply.github.com> Date: Fri, 12 Jul 2024 22:29:13 +0300 Subject: [PATCH] Fixed bug where messages dont appear if user has no avatar --- app.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app.js b/app.js index e5bf257..e1eb475 100644 --- a/app.js +++ b/app.js @@ -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();