aboutsummaryrefslogtreecommitdiff
path: root/src/stores/cacheMangaMinutes.ts
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-09-03 18:25:03 -0700
committerFuwn <[email protected]>2023-09-03 18:25:03 -0700
commitddc18557b5de23fee2e0723b305fd8d8de62bd17 (patch)
tree1d637c453ee627f62f2cdc63c3bb20d11f3b6b5d /src/stores/cacheMangaMinutes.ts
parentrefactor(settings): remove useless triple equal (diff)
downloaddue.moe-ddc18557b5de23fee2e0723b305fd8d8de62bd17.tar.xz
due.moe-ddc18557b5de23fee2e0723b305fd8d8de62bd17.zip
feat(settings): move cache minutes to settings
Diffstat (limited to 'src/stores/cacheMangaMinutes.ts')
-rw-r--r--src/stores/cacheMangaMinutes.ts14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/stores/cacheMangaMinutes.ts b/src/stores/cacheMangaMinutes.ts
deleted file mode 100644
index 6da460b2..00000000
--- a/src/stores/cacheMangaMinutes.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-import { browser } from '$app/environment';
-import { writable } from 'svelte/store';
-
-const cacheMangaMinutes = writable<string>(
- browser ? localStorage.getItem('cacheMangaMinutes') ?? '60' : '60'
-);
-
-cacheMangaMinutes.subscribe((value) => {
- if (browser) {
- localStorage.setItem('cacheMangaMinutes', value);
- }
-});
-
-export default cacheMangaMinutes;