mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
fix(site): fix favicon theme (#10497)
This commit is contained in:
@ -103,9 +103,10 @@ export const WorkspaceReadyPage = ({
|
||||
if (typeof window === "undefined" || !window.matchMedia) {
|
||||
return;
|
||||
}
|
||||
|
||||
const isDark = window.matchMedia("(prefers-color-scheme: dark)");
|
||||
// We want the favicon the opposite of the theme.
|
||||
setFaviconTheme(isDark ? "light" : "dark");
|
||||
setFaviconTheme(isDark.matches ? "light" : "dark");
|
||||
}, []);
|
||||
const buildLogs = useWorkspaceBuildLogs(workspace.latest_build.id);
|
||||
const shouldDisplayBuildLogs =
|
||||
|
Reference in New Issue
Block a user