setting favicon based on whiteLabel

This commit is contained in:
Carter 2025-02-28 10:59:19 -06:00
parent 22a892fa7b
commit aa4106806e
10 changed files with 12 additions and 74 deletions

View file

@ -24,6 +24,12 @@ function App() {
}
})
// Set favicon
const faviconDocument = document.getElementById("favicon-link") as HTMLLinkElement;
if (faviconDocument) {
faviconDocument.href = `${whiteLabel.name.replace(/\s/g, "")}/favicon.ico`;
}
let url: string | undefined = import.meta.env.VITE_AUTH0_CLIENT_DOMAIN;
let audience: string | undefined = import.meta.env.VITE_AUTH0_AUDIENCE;

View file

@ -17,6 +17,7 @@ const useStyles = makeStyles((theme: Theme) => ({
appBar: {
zIndex: theme.zIndex.drawer + 1,
backgroundImage: "none", // This prevents de-saturation of header in dark mode
// backgroundColor: "#272727"
},
toolbar: {
marginLeft: theme.spacing(0.5),