Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd2b8a93

Browse files
fix(site): fix favicon theme (#10497)
1 parent921b6eb commitd2b8a93

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(typeofwindow==="undefined"||!window.matchMedia){
104104
return;
105105
}
106+
106107
constisDark=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
constbuildLogs=useWorkspaceBuildLogs(workspace.latest_build.id);
111112
constshouldDisplayBuildLogs=

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp