refac
This commit is contained in:
1 parent
ea723374c7
commit
05f284d4a6
2 files changed
+9
-5
No files matched your search
@@ -77,6 +77,15 @@
|
||||
// IndexedDB Not Found
|
||||
}
|
||||
|
||||
const chatInputKeys = Object.keys(localStorage).filter((key) =>
|
||||
key.startsWith('chat-input-')
|
||||
);
|
||||
if (chatInputKeys.length > 0) {
|
||||
chatInputKeys.forEach((key) => {
|
||||
localStorage.removeItem(key);
|
||||
});
|
||||
}
|
||||
|
||||
const userSettings = await getUserSettings(localStorage.token).catch((error) => {
|
||||
console.error(error);
|
||||
return null;
|
||||
|
||||
Reference in new issue
Block a user