mirror of
https://github.com/coder/coder.git
synced 2026-09-22 05:05:20 +08:00
fix: invert the favicon on dark mode (#10097)
This commit is contained in:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user