From b8f07bb149cd028ac7418357a2ec23e6194818a5 Mon Sep 17 00:00:00 2001 From: Miroslav Pejic Date: Sat, 13 Nov 2021 21:38:31 +0100 Subject: [PATCH] [mirotalksfu] - fix chat img or gif preview width --- public/js/RoomClient.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/RoomClient.js b/public/js/RoomClient.js index 82fc2106..78befffe 100644 --- a/public/js/RoomClient.js +++ b/public/js/RoomClient.js @@ -1478,7 +1478,7 @@ class RoomClient { let urlRegex = /(https?:\/\/[^\s]+)/g; return message.replace(urlRegex, (url) => { if (message.match(/\.(jpeg|jpg|gif|png|tiff|bmp)$/)) - return 'img'; + return 'img'; return '' + url + ''; }); }