import { browser } from '$app/environment'; import { writable } from 'svelte/store'; const animeLastPrune = writable( browser ? localStorage.getItem('animeLastPrune') ?? '' : '' ); animeLastPrune.subscribe((value) => { if (browser) { localStorage.setItem('animeLastPrune', value); } }); export default animeLastPrune;