diff options
| author | Fuwn <[email protected]> | 2023-09-03 18:36:53 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-09-03 18:36:53 -0700 |
| commit | 92293c66156e49f801fed6e8cc0996fd88f5f33b (patch) | |
| tree | 155c66f6103987a88ddcde2af46ee7c79cc47177 /src/stores/animeLastPrune.ts | |
| parent | fix(media): cache minutes from settings (diff) | |
| download | due.moe-92293c66156e49f801fed6e8cc0996fd88f5f33b.tar.xz due.moe-92293c66156e49f801fed6e8cc0996fd88f5f33b.zip | |
feat(settings): move last prune times to store
Diffstat (limited to 'src/stores/animeLastPrune.ts')
| -rw-r--r-- | src/stores/animeLastPrune.ts | 14 |
1 files changed, 0 insertions, 14 deletions
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<string>( - browser ? localStorage.getItem('animeLastPrune') ?? '' : '' -); - -animeLastPrune.subscribe((value) => { - if (browser) { - localStorage.setItem('animeLastPrune', value); - } -}); - -export default animeLastPrune; |