fix multifile issue

pull/142/head
Aevann 2023-03-15 06:34:47 +02:00
parent d8cf302a43
commit 59ce111b79
1 changed files with 3 additions and 3 deletions

View File

@ -468,10 +468,10 @@ function handle_files(input, newfiles) {
span.innerHTML += file.name.substr(0, 30); span.innerHTML += file.name.substr(0, 30);
if (location.pathname != '/chat') if (location.pathname != '/chat')
if (ta.value) if (ta.value)
ta.setRangeText(`\n[${file.name}]`); ta.value += `\n[${file.name}]`
else else
ta.setRangeText(`[${file.name}]`); ta.value += `[${file.name}]`
} }
autoExpand(ta) autoExpand(ta)