From ab46b7992bdfdef11a44a5d8932cdcb787223cc2 Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 14 Sep 2023 02:21:46 +0300 Subject: [PATCH] fix header chat count during orgy --- files/assets/js/chat.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/files/assets/js/chat.js b/files/assets/js/chat.js index 5ea0c0253..9e40c67a4 100644 --- a/files/assets/js/chat.js +++ b/files/assets/js/chat.js @@ -237,8 +237,7 @@ ta.addEventListener("keydown", function(e) { socket.on('online', function(data){ document.getElementsByClassName('board-chat-count')[0].innerHTML = data[0].length - if (location.pathname == '/chat') - document.getElementById('chat-count-header-bar').innerHTML = data[0].length + document.getElementById('chat-count-header-bar').innerHTML = data[0].length const admin_level = parseInt(document.getElementById('admin_level').value) let online = '' let online2 = 'Users Online'