This commit is contained in:
parent
d8292bb9be
commit
a96b5b1cd2
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue