refac: chat input object localStorage -> sessionStorage

This commit is contained in:
Timothy Jaeryang Baek
2025-06-18 16:02:29 +04:00
parent 34440f95dc
commit 1547235d47
4 changed files with 17 additions and 13 deletions
+1 -3
View File
@@ -78,9 +78,7 @@
// IndexedDB Not Found
}
const chatInputKeys = Object.keys(localStorage).filter((key) =>
key.startsWith('chat-input-')
);
const chatInputKeys = Object.keys(localStorage).filter((key) => key.startsWith('chat-input'));
if (chatInputKeys.length > 0) {
chatInputKeys.forEach((key) => {
localStorage.removeItem(key);