From 19c741a5f83a2b2470862f3ccc37abeeaf40d592 Mon Sep 17 00:00:00 2001 From: Carter Date: Wed, 14 May 2025 12:41:31 -0600 Subject: [PATCH] replacing title by id based on whiteLabel name --- index.html | 2 +- src/app/App.tsx | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index da05f1e..31b4ca1 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ - Adaptive Dashboard + Adaptive Dashboard diff --git a/src/app/App.tsx b/src/app/App.tsx index 46e7121..efd014b 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -37,6 +37,13 @@ function App() { faviconDocument.href = "BrandXTechnologies/favicon.ico" }) + // Set favicon + const titleDocument = document.getElementById("title-id") as HTMLLinkElement; + if (titleDocument) { + console.log(whiteLabel.name) + titleDocument.href = whiteLabel.name; + } + let domain: string | undefined = import.meta.env.VITE_AUTH0_CLIENT_DOMAIN; let audience: string | undefined = import.meta.env.VITE_AUTH0_AUDIENCE;