From 6bc112d68972ed35853868df05eb122cb8b4a3df Mon Sep 17 00:00:00 2001 From: SBD Date: Wed, 21 Feb 2024 14:37:31 +0300 Subject: [PATCH] 13 --- static/js/chat_sockets.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/static/js/chat_sockets.js b/static/js/chat_sockets.js index 1eec052..b18d605 100644 --- a/static/js/chat_sockets.js +++ b/static/js/chat_sockets.js @@ -108,8 +108,9 @@ function wsReceiveData (e) { } // } // if - - update_list_w_users(data,old_item_tab_user,el_tab) + if (window.location.href.includes("chat")){ + update_list_w_users(data,old_item_tab_user,el_tab) + } } else if (data.type === "update_support_chat"){