Skip to content

Commit

Permalink
fix dark default
Browse files Browse the repository at this point in the history
  • Loading branch information
rystaf committed Aug 8, 2023
1 parent d8292bb commit a96b5b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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") != ""
Expand Down

0 comments on commit a96b5b1

Please sign in to comment.