MCPcopy Create free account
hub / github.com/block/buzz / handler

Function handler

desktop/src/shared/theme/ThemeProvider.tsx:324–326  ·  view source on GitHub ↗
(event: MediaQueryListEvent)

Source from the content-addressed store, hash-verified

322
323 const mq = window.matchMedia("(prefers-color-scheme: dark)");
324 const handler = (event: MediaQueryListEvent) => {
325 setSystemIsDark(event.matches);
326 };
327
328 setSystemIsDark(mq.matches);
329 mq.addEventListener("change", handler);

Callers 3

sendWsTextFunction · 0.50
sendWsCloseFunction · 0.50
connectRealSocketFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected