|
|
|
@ -59,21 +59,11 @@ export const unescapeHtml = s => {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const getSettings = morph.compose(
|
|
|
|
|
parse,
|
|
|
|
|
escapeHtml,
|
|
|
|
|
morph.get(SETTINGS_KEY)
|
|
|
|
|
)
|
|
|
|
|
export const getSettings = morph.compose(parse, escapeHtml, morph.get(SETTINGS_KEY))
|
|
|
|
|
|
|
|
|
|
export const getPresets = morph.compose(
|
|
|
|
|
parse,
|
|
|
|
|
morph.get(PRESETS_KEY)
|
|
|
|
|
)
|
|
|
|
|
export const getPresets = morph.compose(parse, morph.get(PRESETS_KEY))
|
|
|
|
|
|
|
|
|
|
export const getThemes = morph.compose(
|
|
|
|
|
parse,
|
|
|
|
|
morph.get(THEMES_KEY)
|
|
|
|
|
)
|
|
|
|
|
export const getThemes = morph.compose(parse, morph.get(THEMES_KEY))
|
|
|
|
|
|
|
|
|
|
export const clearSettings = () => localStorage.removeItem(SETTINGS_KEY)
|
|
|
|
|
|
|
|
|
|