Aktueller Stand
This commit is contained in:
@@ -56,6 +56,14 @@ export default function NavBar() {
|
||||
loadAppName();
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
if (typeof document === "undefined") return;
|
||||
const nextTitle = appName?.trim();
|
||||
if (nextTitle) {
|
||||
document.title = nextTitle;
|
||||
}
|
||||
}, [appName]);
|
||||
|
||||
useEffect(() => {
|
||||
if (typeof document === "undefined") return;
|
||||
const root = document.documentElement;
|
||||
|
||||
Reference in New Issue
Block a user