1
0
mirror of https://github.com/comatory/fb2iCal synced 2025-06-05 22:09:25 +02:00

feature: create event store in preparation of table component

replacement
This commit is contained in:
Ondřej Synáček
2020-12-15 21:48:38 +01:00
parent e28b378e07
commit 985b580d7d
4 changed files with 52 additions and 3 deletions

View File

@@ -1,7 +1,9 @@
import { writable } from 'svelte/store'
import { STORAGE_KEYS } from '../services/storageListener'
const createConfigStore = () => {
const state = JSON.parse(localStorage.getItem('fb-to-ical-config') || '{}')
const state = JSON.parse(localStorage.getItem(STORAGE_KEYS.CONFIG) || '{}')
const { subscribe, set, update } = writable(state)