Skip to content

Commit

Permalink
missed web file
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Sep 7, 2024
1 parent c0c9744 commit 35cb432
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/app_goxjs.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ var themeChanged = js.FuncOf(func(this js.Value, args []js.Value) interface{} {
return nil
})

func watchTheme() {
func watchTheme(_ *settings) {
js.Global().Call("matchMedia", "(prefers-color-scheme: dark)").Call("addEventListener", "change", themeChanged)
}
func stopWatchingTheme() {
Expand Down

0 comments on commit 35cb432

Please sign in to comment.