From 35cb432b688d819a2b17416b99fd822346daaaba Mon Sep 17 00:00:00 2001 From: Andy Williams Date: Sat, 7 Sep 2024 18:25:21 +0100 Subject: [PATCH] missed web file --- app/app_goxjs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/app_goxjs.go b/app/app_goxjs.go index e256204810..08c2df7611 100644 --- a/app/app_goxjs.go +++ b/app/app_goxjs.go @@ -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() {