diff --git a/materialious/src/routes/history/+page.svelte b/materialious/src/routes/history/+page.svelte index 05053768..387763df 100644 --- a/materialious/src/routes/history/+page.svelte +++ b/materialious/src/routes/history/+page.svelte @@ -49,8 +49,7 @@ await deleteHistory(); history = []; Object.keys(localStorage).forEach((key) => { - let content = localStorage.getItem(key); - if (content && content.startsWith('v_')) { + if (key.startsWith('v_')) { localStorage.removeItem(key); } });