diff options
Diffstat (limited to 'src/lib/Settings')
| -rw-r--r-- | src/lib/Settings/Categories/Debug.svelte | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/Settings/Categories/Debug.svelte b/src/lib/Settings/Categories/Debug.svelte index 8ba6ade9..c21edb44 100644 --- a/src/lib/Settings/Categories/Debug.svelte +++ b/src/lib/Settings/Categories/Debug.svelte @@ -13,8 +13,6 @@ const clearCaches = async () => { if (!browser) return; - localStorage.removeItem('anime'); - localStorage.removeItem('manga'); await localforage.removeItem('anime'); await localforage.removeItem('manga'); addNotification( @@ -50,8 +48,8 @@ <p /> <button - on:click={() => { - localStorage.clear(); + on:click={async () => { + await localforage.clear(); addNotification( options({ heading: '<code>localStorage</code> successfully cleared' |