From 92293c66156e49f801fed6e8cc0996fd88f5f33b Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sun, 3 Sep 2023 18:36:53 -0700 Subject: feat(settings): move last prune times to store --- src/stores/animeLastPrune.ts | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 src/stores/animeLastPrune.ts (limited to 'src/stores/animeLastPrune.ts') diff --git a/src/stores/animeLastPrune.ts b/src/stores/animeLastPrune.ts deleted file mode 100644 index f2e747d1..00000000 --- a/src/stores/animeLastPrune.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { browser } from '$app/environment'; -import { writable } from 'svelte/store'; - -const animeLastPrune = writable( - browser ? localStorage.getItem('animeLastPrune') ?? '' : '' -); - -animeLastPrune.subscribe((value) => { - if (browser) { - localStorage.setItem('animeLastPrune', value); - } -}); - -export default animeLastPrune; -- cgit v1.2.3