mirror of
https://github.com/rystaf/mlmym.git
synced 2024-11-22 13:47:42 +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 != "" {
|
if dark := getCookie(r, "Dark"); dark != "" {
|
||||||
state.Dark = dark != "0"
|
state.Dark = dark != "0"
|
||||||
} else {
|
} else {
|
||||||
state.Dark = os.Getenv("DARK") != "0"
|
state.Dark = os.Getenv("DARK") != ""
|
||||||
}
|
}
|
||||||
state.ShowNSFW = getCookie(r, "ShowNSFW") != ""
|
state.ShowNSFW = getCookie(r, "ShowNSFW") != ""
|
||||||
state.HideInstanceNames = getCookie(r, "HideInstanceNames") != ""
|
state.HideInstanceNames = getCookie(r, "HideInstanceNames") != ""
|
||||||
|
|
Loading…
Reference in a new issue