From a35fd4aafbbf20fc9104eb5c57b76354c35e9414 Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Sun, 15 Feb 2026 23:59:02 +0000 Subject: [PATCH] =?UTF-8?q?r=C3=A8gles=20v1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/js/main.js | 7 ++++--- requests.log | 9 +++++++++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/assets/js/main.js b/assets/js/main.js index 25e3fb5..0526954 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -226,14 +226,15 @@ document.addEventListener('DOMContentLoaded', () => { }, 1000); function showTyping(username) { + if (!typingIndicator) return; typingIndicator.textContent = `${username} is typing...`; clearTimeout(typingTimeout); typingTimeout = setTimeout(() => { - typingIndicator.textContent = ''; + if (typingIndicator) typingIndicator.textContent = ''; }, 3000); } - chatInput.addEventListener('input', () => { + chatInput?.addEventListener('input', () => { if (ws && ws.readyState === WebSocket.OPEN) { ws.send(JSON.stringify({ type: 'typing', @@ -244,7 +245,7 @@ document.addEventListener('DOMContentLoaded', () => { } }); - chatForm.addEventListener('submit', (e) => { + chatForm?.addEventListener('submit', (e) => { e.preventDefault(); const content = chatInput.value.trim(); const file = fileUpload.files[0]; diff --git a/requests.log b/requests.log index 4f2a667..b9d7d7d 100644 --- a/requests.log +++ b/requests.log @@ -49,3 +49,12 @@ 2026-02-15 23:52:56 - GET /index.php?server_id=1&channel_id=11 - POST: [] 2026-02-15 23:53:22 - GET /index.php?server_id=1&channel_id=11 - POST: [] 2026-02-15 23:54:12 - GET /index.php?server_id=1&channel_id=11 - POST: [] +2026-02-15 23:55:22 - GET /?fl_project=38443 - POST: [] +2026-02-15 23:55:42 - GET /index.php?server_id=1&channel_id=11 - POST: [] +2026-02-15 23:55:45 - GET /index.php?server_id=1&channel_id=11 - POST: [] +2026-02-15 23:56:14 - GET /index.php?server_id=1&channel_id=11 - POST: [] +2026-02-15 23:56:41 - GET /index.php?server_id=1&channel_id=11 - POST: [] +2026-02-15 23:57:05 - GET /index.php?server_id=1&channel_id=11 - POST: [] +2026-02-15 23:57:30 - GET /index.php?server_id=1&channel_id=11 - POST: [] +2026-02-15 23:57:46 - GET /index.php?server_id=1&channel_id=6 - POST: [] +2026-02-15 23:57:49 - GET /index.php?server_id=1&channel_id=11 - POST: []