2024-07-14 20:28:44 +08:00
|
|
|
import { persistentMap } from "@nanostores/persistent";
|
|
|
|
|
|
|
|
type Settings = {
|
|
|
|
onGoingOAuth2Process?: string
|
2024-07-23 08:28:47 +08:00
|
|
|
prefetchTootsDisabled?: boolean
|
2024-07-14 20:28:44 +08:00
|
|
|
}
|
|
|
|
|
2024-07-23 08:28:47 +08:00
|
|
|
export const $settings = persistentMap<Settings>("settings::", {}, {
|
|
|
|
encode: JSON.stringify,
|
|
|
|
decode: JSON.parse
|
|
|
|
})
|