Store preferences in cookies, add config defaults

This commit is contained in:
Zed 2020-05-08 02:48:47 +02:00
commit 312ff78628
9 changed files with 112 additions and 112 deletions

View file

@ -10,7 +10,9 @@ import routes/[
unsupported, embed, resolver]
const configPath {.strdefine.} = "./nitter.conf"
let cfg = getConfig(configPath)
let (cfg, fullCfg) = getConfig(configPath)
updateDefaultPrefs(fullCfg)
setHmacKey(cfg.hmacKey)