()
| 39 | // themeMode === "auto": follow system |
| 40 | const media = window.matchMedia("(prefers-color-scheme: dark)"); |
| 41 | const update = () => applyTheme(media.matches); |
| 42 | update(); |
| 43 | media.addEventListener("change", update); |
| 44 | return () => media.removeEventListener("change", update); |
no test coverage detected