diff --git a/Sources/TokamakDOM/App/ColorSchemeObserver.swift b/Sources/TokamakDOM/App/ColorSchemeObserver.swift index f5c18bf7e..7c05e2193 100644 --- a/Sources/TokamakDOM/App/ColorSchemeObserver.swift +++ b/Sources/TokamakDOM/App/ColorSchemeObserver.swift @@ -27,7 +27,7 @@ enum ColorSchemeObserver { publisher.value = .init(matchMediaDarkScheme: $0[0].object!) return .undefined } - _ = matchMediaDarkScheme.addEventListener!("change", closure) + _ = matchMediaDarkScheme.addListener!(closure) Self.closure = closure } }