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"){