We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 921b6eb commit d2b8a93Copy full SHA for d2b8a93
site/src/pages/WorkspacePage/WorkspaceReadyPage.tsx
@@ -103,9 +103,10 @@ export const WorkspaceReadyPage = ({
103
if (typeof window === "undefined" || !window.matchMedia) {
104
return;
105
}
106
+
107
const isDark = window.matchMedia("(prefers-color-scheme: dark)");
108
// We want the favicon the opposite of the theme.
- setFaviconTheme(isDark ? "light" : "dark");
109
+ setFaviconTheme(isDark.matches ? "light" : "dark");
110
}, []);
111
const buildLogs = useWorkspaceBuildLogs(workspace.latest_build.id);
112
const shouldDisplayBuildLogs =
0 commit comments