aboutsummaryrefslogtreecommitdiff
path: root/src/stores/lastPruneAt.ts
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-08-27 17:22:40 -0700
committerFuwn <[email protected]>2023-08-27 17:22:40 -0700
commit7fc05993446392f5342815734a7a2e99cf63bddb (patch)
treefb14a5ab35b6e4fdbcfb83ec18ad3ca594269134 /src/stores/lastPruneAt.ts
parentfeat(layout): cache user identity (diff)
downloaddue.moe-7fc05993446392f5342815734a7a2e99cf63bddb.tar.xz
due.moe-7fc05993446392f5342815734a7a2e99cf63bddb.zip
feat: cache media
Diffstat (limited to 'src/stores/lastPruneAt.ts')
-rw-r--r--src/stores/lastPruneAt.ts12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/stores/lastPruneAt.ts b/src/stores/lastPruneAt.ts
deleted file mode 100644
index 0720bc60..00000000
--- a/src/stores/lastPruneAt.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-import { browser } from '$app/environment';
-import { writable } from 'svelte/store';
-
-const lastPruneAt = writable<string>(browser ? localStorage.getItem('lastPruneAt') ?? '' : '');
-
-lastPruneAt.subscribe((value) => {
- if (browser) {
- localStorage.setItem('lastPruneAt', value);
- }
-});
-
-export default lastPruneAt;