fix: invert the favicon on dark mode (#10097)

This commit is contained in:
Kyle Carberry
2023-10-06 07:55:11 -05:00
committed by GitHub
parent 983e8c3ae8
commit 23425d36a1
@@ -104,7 +104,8 @@ export const WorkspaceReadyPage = ({
return;
}
const isDark = window.matchMedia("(prefers-color-scheme: dark)");
setFaviconTheme(isDark ? "dark" : "light");
// We want the favicon the opposite of the theme.
setFaviconTheme(isDark ? "light" : "dark");
}, []);
const buildLogs = useWorkspaceBuildLogs(workspace.latest_build.id);
const shouldDisplayBuildLogs =