From 0600c63c0bb7f50d483604d17aa8b12ef03d4896 Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 26 Sep 2023 21:39:05 +0300 Subject: [PATCH] more aethetic code --- files/assets/js/chat.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/files/assets/js/chat.js b/files/assets/js/chat.js index 5874e13384..81dfbaf27e 100644 --- a/files/assets/js/chat.js +++ b/files/assets/js/chat.js @@ -6,10 +6,9 @@ for (const e of timestamps) { e.innerHTML = formatDate(new Date(e.dataset.time*1000)); }; -const ua=window.navigator.userAgent -let socket +const ua = window.navigator.userAgent -socket=io() +const socket = io() const chatline = document.getElementsByClassName('chat-line')[0] const box = document.getElementById('chat-window')