mirror of
https://github.com/rystaf/mlmym.git
synced 2024-12-28 11:08:56 +00:00
fix dark default
This commit is contained in:
parent
d8292bb9be
commit
a96b5b1cd2
|
@ -263,7 +263,7 @@ func Initialize(Host string, r *http.Request) (State, error) {
|
|||
if dark := getCookie(r, "Dark"); dark != "" {
|
||||
state.Dark = dark != "0"
|
||||
} else {
|
||||
state.Dark = os.Getenv("DARK") != "0"
|
||||
state.Dark = os.Getenv("DARK") != ""
|
||||
}
|
||||
state.ShowNSFW = getCookie(r, "ShowNSFW") != ""
|
||||
state.HideInstanceNames = getCookie(r, "HideInstanceNames") != ""
|
||||
|
|
Loading…
Reference in a new issue