Settings: prefetching toots
This commit is contained in:
parent
c25ca17043
commit
c204bdd70b
3 changed files with 19 additions and 4 deletions
|
@ -2,6 +2,10 @@ import { persistentMap } from "@nanostores/persistent";
|
|||
|
||||
type Settings = {
|
||||
onGoingOAuth2Process?: string
|
||||
prefetchTootsDisabled?: boolean
|
||||
}
|
||||
|
||||
export const $settings = persistentMap<Settings>("settings::", {})
|
||||
export const $settings = persistentMap<Settings>("settings::", {}, {
|
||||
encode: JSON.stringify,
|
||||
decode: JSON.parse
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue