From 5ad64c799823b4c2c5cbce055f526547977c9c15 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Mon, 18 Nov 2024 22:39:55 -0800 Subject: [PATCH] refac --- src/lib/components/chat/MessageInput.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/components/chat/MessageInput.svelte b/src/lib/components/chat/MessageInput.svelte index 8f82d8922..03b6ffc32 100644 --- a/src/lib/components/chat/MessageInput.svelte +++ b/src/lib/components/chat/MessageInput.svelte @@ -776,7 +776,7 @@ reader.readAsDataURL(blob); } else if (item.type === 'text/plain') { if ($settings?.largeTextAsFile ?? false) { - const text = await clipboardData.getData('text/plain'); + const text = clipboardData.getData('text/plain'); if (text.length > PASTED_TEXT_CHARACTER_LIMIT) { e.preventDefault(); @@ -966,7 +966,7 @@ reader.readAsDataURL(blob); } else if (item.type === 'text/plain') { if ($settings?.largeTextAsFile ?? false) { - const text = await clipboardData.getData('text/plain'); + const text = clipboardData.getData('text/plain'); if (text.length > PASTED_TEXT_CHARACTER_LIMIT) { e.preventDefault();