blob: 6da460b2384d3b738f4ed45c8dce2f3e08aa4183 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import { browser } from '$app/environment';
import { writable } from 'svelte/store';
const cacheMangaMinutes = writable<string>(
browser ? localStorage.getItem('cacheMangaMinutes') ?? '60' : '60'
);
cacheMangaMinutes.subscribe((value) => {
if (browser) {
localStorage.setItem('cacheMangaMinutes', value);
}
});
export default cacheMangaMinutes;
|