mirror of
https://github.com/zedeus/nitter.git
synced 2026-01-30 15:22:49 -05:00
@@ -44,3 +44,10 @@ proc createPrefRouter*(cfg: Config) =
|
||||
cache(prefs)
|
||||
savePrefs()
|
||||
redirect(refPath())
|
||||
|
||||
before:
|
||||
if @"theme".len > 0:
|
||||
var prefs = cookiePrefs()
|
||||
prefs.theme = @"theme".capitalizeAscii.replace("_", " ")
|
||||
cache(prefs)
|
||||
savePrefs()
|
||||
|
||||
Reference in New Issue
Block a user