diff options
| author | Fuwn <[email protected]> | 2024-10-09 00:41:20 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-10-09 00:41:43 -0700 |
| commit | 998b63a35256ac985a5a2714dd1ca451af4dfd8a (patch) | |
| tree | 50796121a9d5ab0330fdc5d7e098bda2860d9726 /src/stores/announcementHash.ts | |
| parent | feat(graphql): add badgeCount field (diff) | |
| download | due.moe-998b63a35256ac985a5a2714dd1ca451af4dfd8a.tar.xz due.moe-998b63a35256ac985a5a2714dd1ca451af4dfd8a.zip | |
chore(prettier): use spaces instead of tabs
Diffstat (limited to 'src/stores/announcementHash.ts')
| -rw-r--r-- | src/stores/announcementHash.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stores/announcementHash.ts b/src/stores/announcementHash.ts index 4a44d670..0ff57b3b 100644 --- a/src/stores/announcementHash.ts +++ b/src/stores/announcementHash.ts @@ -2,11 +2,11 @@ import { browser } from '$app/environment'; import { writable } from 'svelte/store'; const announcementHash = writable<number>( - browser ? parseInt(localStorage.getItem('announcementHash') || '1') : 0 + browser ? parseInt(localStorage.getItem('announcementHash') || '1') : 0 ); announcementHash.subscribe((value) => { - if (browser) localStorage.setItem('announcementHash', value.toString()); + if (browser) localStorage.setItem('announcementHash', value.toString()); }); export default announcementHash; |