Timothy Jaeryang Baek 5 hónapja
szülő
commit
5ad64c7998
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      src/lib/components/chat/MessageInput.svelte

+ 2 - 2
src/lib/components/chat/MessageInput.svelte

@@ -776,7 +776,7 @@
 																reader.readAsDataURL(blob);
 																reader.readAsDataURL(blob);
 															} else if (item.type === 'text/plain') {
 															} else if (item.type === 'text/plain') {
 																if ($settings?.largeTextAsFile ?? false) {
 																if ($settings?.largeTextAsFile ?? false) {
-																	const text = await clipboardData.getData('text/plain');
+																	const text = clipboardData.getData('text/plain');
 
 
 																	if (text.length > PASTED_TEXT_CHARACTER_LIMIT) {
 																	if (text.length > PASTED_TEXT_CHARACTER_LIMIT) {
 																		e.preventDefault();
 																		e.preventDefault();
@@ -966,7 +966,7 @@
 															reader.readAsDataURL(blob);
 															reader.readAsDataURL(blob);
 														} else if (item.type === 'text/plain') {
 														} else if (item.type === 'text/plain') {
 															if ($settings?.largeTextAsFile ?? false) {
 															if ($settings?.largeTextAsFile ?? false) {
-																const text = await clipboardData.getData('text/plain');
+																const text = clipboardData.getData('text/plain');
 
 
 																if (text.length > PASTED_TEXT_CHARACTER_LIMIT) {
 																if (text.length > PASTED_TEXT_CHARACTER_LIMIT) {
 																	e.preventDefault();
 																	e.preventDefault();