diff options
| author | Fuwn <[email protected]> | 2023-09-03 18:25:03 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-09-03 18:25:03 -0700 |
| commit | ddc18557b5de23fee2e0723b305fd8d8de62bd17 (patch) | |
| tree | 1d637c453ee627f62f2cdc63c3bb20d11f3b6b5d /src/stores/cacheMangaMinutes.ts | |
| parent | refactor(settings): remove useless triple equal (diff) | |
| download | due.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.ts | 14 |
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; |