Store preferences in cookies, add config defaults

This commit is contained in:
Zed
2020-05-08 02:48:47 +02:00
parent 517d9144f6
commit 312ff78628
9 changed files with 109 additions and 109 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)