From 93da418c16ebb93211df8d8a6d5a5d79d6256c3a Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 13 Nov 2024 03:08:32 +0200 Subject: [PATCH] fix typo --- files/assets/js/chat.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/assets/js/chat.js b/files/assets/js/chat.js index 5b1ac8f02..89d2aefb7 100644 --- a/files/assets/js/chat.js +++ b/files/assets/js/chat.js @@ -391,8 +391,8 @@ document.addEventListener('click', function(e) { const input = document.getElementById('file') function handle_files() { if (!input.files.length) return - if (check_file_sizet(input, input.files[0])) { - const char_limi = innerWidth >= 768 ? 50 : 10; + if (check_file_size(input, input.files[0])) { + const char_limit = innerWidth >= 768 ? 50 : 10; input.previousElementSibling.className = ""; input.previousElementSibling.textContent = input.files[0].name.substr(0, char_limit);