diff --git a/routes.go b/routes.go index c2176b6..937084c 100644 --- a/routes.go +++ b/routes.go @@ -770,6 +770,9 @@ func Settings(w http.ResponseWriter, r *http.Request, ps httprouter.Params) { } else if r.FormValue("darkmode") != "" { setCookie(w, "", "Dark", "1") *state.Dark = true + } else { + setCookie(w, "", "Dark", "0") + *state.Dark = false } if r.FormValue("shownsfw") != "" { setCookie(w, "", "ShowNSFW", "1")