refac: chat input object localStorage -> sessionStorage
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user