From ed0b3c37a9a11624554c97c9ea7ca142ac79b3c3 Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 23 Aug 2023 02:21:49 +0300 Subject: [PATCH] remove unnecessary if condition --- files/assets/js/core.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/files/assets/js/core.js b/files/assets/js/core.js index 4bed4b9ca4..3027dc5d15 100644 --- a/files/assets/js/core.js +++ b/files/assets/js/core.js @@ -505,12 +505,10 @@ function handle_files(input, newfiles) { return } - if (location.pathname != '/chat') { - for (const file of newfiles) { - insertText(ta, `[${file.name}]`); - } - markdown(ta) + for (const file of newfiles) { + insertText(ta, `[${file.name}]`); } + markdown(ta) autoExpand(ta)