This commit is contained in:
Timothy Jaeryang Baek
2025-06-16 12:46:04 +04:00
parent b37907671e
commit 51e05988bd
2 changed files with 15 additions and 11 deletions
+6 -4
View File
@@ -216,10 +216,12 @@
{createMessagePair}
placeholder={$i18n.t('How can I help you today?')}
onChange={(input) => {
if (input.prompt !== null) {
localStorage.setItem(`chat-input`, JSON.stringify(input));
} else {
localStorage.removeItem(`chat-input`);
if (!$temporaryChatEnabled) {
if (input.prompt !== null) {
localStorage.setItem(`chat-input`, JSON.stringify(input));
} else {
localStorage.removeItem(`chat-input`);
}
}
}}
on:upload={(e) => {