From 3623d8b265ee5f09586f234900156c88d4880f26 Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 5 Sep 2023 22:37:42 +0300 Subject: [PATCH] remove unnecessary shit --- files/assets/js/chat.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/files/assets/js/chat.js b/files/assets/js/chat.js index e8d4b7e1e..35d939ddb 100644 --- a/files/assets/js/chat.js +++ b/files/assets/js/chat.js @@ -351,16 +351,9 @@ document.addEventListener('click', function (e) { const input = document.getElementById('file') -function handle_files() { - if (!input.files.length) return - input.previousElementSibling.textContent = input.files[0].name.substr(0, 50); -} - -input.onchange = handle_files document.onpaste = function(event) { input.files = structuredClone(event.clipboardData.files); - handle_files() } box.scrollTo(0, box.scrollHeight)