MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / handler

Function handler

javascript/grid-ui/src/contexts/ThemeContext.tsx:59–59  ·  view source on GitHub ↗
(e: MediaQueryListEvent)

Source from the content-addressed store, hash-verified

57 if (typeof window !== 'undefined' && window.matchMedia) {
58 const mediaQuery = window.matchMedia('(prefers-color-scheme: dark)')
59 const handler = (e: MediaQueryListEvent) => setSystemPrefersDark(e.matches)
60 mediaQuery.addEventListener('change', handler)
61 return () => mediaQuery.removeEventListener('change', handler)
62 }

Callers 2

logMethod · 0.50
publishMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected