diff options
Diffstat (limited to 'src/stores/roundDownChapters.ts')
| -rw-r--r-- | src/stores/roundDownChapters.ts | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/stores/roundDownChapters.ts b/src/stores/roundDownChapters.ts deleted file mode 100644 index 8cbdbdc1..00000000 --- a/src/stores/roundDownChapters.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { browser } from '$app/environment'; -import { writable } from 'svelte/store'; - -const roundDownChapters = writable<string>( - browser ? localStorage.getItem('roundDownChapters') ?? 'true' : 'true' -); - -roundDownChapters.subscribe((value) => { - if (browser) { - localStorage.setItem('roundDownChapters', value); - } -}); - -export default roundDownChapters; |