aboutsummaryrefslogtreecommitdiff
path: root/src/stores/animeLastPrune.ts
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-09-03 18:36:53 -0700
committerFuwn <[email protected]>2023-09-03 18:36:53 -0700
commit92293c66156e49f801fed6e8cc0996fd88f5f33b (patch)
tree155c66f6103987a88ddcde2af46ee7c79cc47177 /src/stores/animeLastPrune.ts
parentfix(media): cache minutes from settings (diff)
downloaddue.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.ts14
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;