From ddc18557b5de23fee2e0723b305fd8d8de62bd17 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sun, 3 Sep 2023 18:25:03 -0700 Subject: feat(settings): move cache minutes to settings --- src/stores/cacheMangaMinutes.ts | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 src/stores/cacheMangaMinutes.ts (limited to 'src/stores/cacheMangaMinutes.ts') 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( - browser ? localStorage.getItem('cacheMangaMinutes') ?? '60' : '60' -); - -cacheMangaMinutes.subscribe((value) => { - if (browser) { - localStorage.setItem('cacheMangaMinutes', value); - } -}); - -export default cacheMangaMinutes; -- cgit v1.2.3