Skip to content

Commit d2b8a93

Browse files
fix(site): fix favicon theme (#10497)
1 parent 921b6eb commit d2b8a93

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

site/src/pages/WorkspacePage/WorkspaceReadyPage.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,10 @@ export const WorkspaceReadyPage = ({
103103
if (typeof window === "undefined" || !window.matchMedia) {
104104
return;
105105
}
106+
106107
const isDark = window.matchMedia("(prefers-color-scheme: dark)");
107108
// We want the favicon the opposite of the theme.
108-
setFaviconTheme(isDark ? "light" : "dark");
109+
setFaviconTheme(isDark.matches ? "light" : "dark");
109110
}, []);
110111
const buildLogs = useWorkspaceBuildLogs(workspace.latest_build.id);
111112
const shouldDisplayBuildLogs =

0 commit comments

Comments
 (0)