feat: Improve system reset functionality in settings
This commit is contained in:
parent
43b4f076e9
commit
8124490655
@ -271,7 +271,6 @@ export const GeneralSettings = () => {
|
|||||||
queryKey: ["fetchChatHistory"]
|
queryKey: ["fetchChatHistory"]
|
||||||
})
|
})
|
||||||
clearChat()
|
clearChat()
|
||||||
}
|
|
||||||
try {
|
try {
|
||||||
await browser.storage.sync.clear()
|
await browser.storage.sync.clear()
|
||||||
await browser.storage.local.clear()
|
await browser.storage.local.clear()
|
||||||
@ -279,6 +278,7 @@ export const GeneralSettings = () => {
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log("Error clearing storage:", e)
|
console.log("Error clearing storage:", e)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
className="bg-red-500 dark:bg-red-600 text-white dark:text-gray-200 px-4 py-2 rounded-md">
|
className="bg-red-500 dark:bg-red-600 text-white dark:text-gray-200 px-4 py-2 rounded-md">
|
||||||
{t("generalSettings.system.deleteChatHistory.button")}
|
{t("generalSettings.system.deleteChatHistory.button")}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user