blob: f4c714add03c18f22ffda34b4032094b69f6e656 (
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') ?? '120' : '120'
);
cacheMangaMinutes.subscribe((value) => {
if (browser) {
localStorage.setItem('cacheMangaMinutes', value);
}
});
export default cacheMangaMinutes;
|