fix: titre onglet — nom du perso + TetaRdPG au lieu de 'frontend'
All checks were successful
CI/CD — Build & Deploy / Build & Deploy (push) Successful in 35s

This commit is contained in:
2026-03-25 01:24:46 +01:00
parent e8f108a7e8
commit cae0ef5d57
2 changed files with 5 additions and 1 deletions

View File

@@ -4,7 +4,7 @@
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" /> <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>frontend</title> <title>TetaRdPG</title>
</head> </head>
<body> <body>
<div id="root"></div> <div id="root"></div>

View File

@@ -38,6 +38,10 @@ export function HudBar() {
refetchInterval: 30_000, // refresh every 30s for endurance updates refetchInterval: 30_000, // refresh every 30s for endurance updates
}); });
useEffect(() => {
document.title = char?.name ? `${char.name} — TetaRdPG` : 'TetaRdPG';
}, [char?.name]);
const { data: activeQuests } = useQuery({ const { data: activeQuests } = useQuery({
queryKey: ['questsActive'], queryKey: ['questsActive'],
queryFn: questApi.active, queryFn: questApi.active,