diff options
| author | Fuwn <[email protected]> | 2023-09-03 17:58:56 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-09-03 17:58:56 -0700 |
| commit | 00a37d80baff59b57fec2bd475ab7de531580199 (patch) | |
| tree | 4c487e8d02859924c1e0abbf45fcf979c0f45489 /src/stores/sortByDifference.ts | |
| parent | fix(manga): manga collection refresh (diff) | |
| download | due.moe-00a37d80baff59b57fec2bd475ab7de531580199.tar.xz due.moe-00a37d80baff59b57fec2bd475ab7de531580199.zip | |
feat(stores): settings store for all settings
Diffstat (limited to 'src/stores/sortByDifference.ts')
| -rw-r--r-- | src/stores/sortByDifference.ts | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/stores/sortByDifference.ts b/src/stores/sortByDifference.ts deleted file mode 100644 index 1a26371e..00000000 --- a/src/stores/sortByDifference.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { browser } from '$app/environment'; -import { writable } from 'svelte/store'; - -const sortByDifference = writable<string>( - browser ? localStorage.getItem('sortByDifference') ?? 'true' : 'true' -); - -sortByDifference.subscribe((value) => { - if (browser) { - localStorage.setItem('sortByDifference', value); - } -}); - -export default sortByDifference; |