()
| 103 | }; |
| 104 | |
| 105 | const prefersDark = (): boolean => |
| 106 | typeof globalThis.window !== "undefined" && |
| 107 | typeof globalThis.window.matchMedia === "function" && |
| 108 | globalThis.window.matchMedia("(prefers-color-scheme: dark)").matches; |
| 109 | |
| 110 | /** |
| 111 | * Build the host. `fetch` is injectable so the seam can be tested without a |
no outgoing calls
no test coverage detected