blob: 0720bc60f96996360c2ade4583d002c0e1cb3151 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
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;
|