Wipe localstorage video progress tracking on history clear

This commit is contained in:
WardPearce
2024-03-28 23:08:26 +13:00
parent a73c7d37dc
commit 345688bc92
@@ -48,6 +48,12 @@
on:click={async () => {
await deleteHistory();
history = [];
Object.keys(localStorage).forEach((key) => {
let content = localStorage.getItem(key);
if (content && content.startsWith('v_')) {
localStorage.removeItem(key);
}
});
}}
>
<i>delete_sweep</i>