nitter/src/prefs.nim

16 lines
321 B
Nim
Raw Normal View History

import tables
import types, prefs_impl
from config import get
from parsecfg import nil
2019-08-13 17:44:29 +00:00
export genUpdatePrefs, genResetPrefs
var defaultPrefs*: Prefs
proc updateDefaultPrefs*(cfg: parsecfg.Config) =
genDefaultPrefs()
2019-09-08 10:22:52 +00:00
proc getPrefs*(cookies: Table[string, string]): Prefs =
result = defaultPrefs
genCookiePrefs()