diff --git a/public/BrandXTechnologies/manifest.json b/public/BrandXTechnologies/manifest.json index 1acac1b..aad40f6 100644 --- a/public/BrandXTechnologies/manifest.json +++ b/public/BrandXTechnologies/manifest.json @@ -19,7 +19,7 @@ } ], "start_url": "/", - "theme_color": "#005bb0", + "theme_color": "#272727", "background_color": "#424242", "display": "standalone", "orientation": "any" diff --git a/src/app/App.tsx b/src/app/App.tsx index e9504ca..0692de9 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -21,14 +21,25 @@ function App() { fetch(manifestPath).then(response => { if (response.ok && manifestDocument) { manifestDocument.href = manifestPath; + } else { + manifestDocument.href = "BrandXTechnologies/manifest.json" } + }).catch(() => { + manifestDocument.href = "BrandXTechnologies/manifest.json" }) // Set favicon const faviconDocument = document.getElementById("favicon-link") as HTMLLinkElement; - if (faviconDocument) { - faviconDocument.href = `${whiteLabel.name.replace(/\s/g, "")}/favicon.ico`; - } + const faviconPath = `${whiteLabel.name.replace(/\s/g, "")}/favicon.ico`; + fetch(faviconPath).then(response => { + if (response.ok && faviconDocument) { + faviconDocument.href = faviconPath; + } else { + faviconDocument.href = "BrandXTechnologies/favicon.ico" + } + }).catch(() => { + faviconDocument.href = "BrandXTechnologies/favicon.ico" + }) let url: string | undefined = import.meta.env.VITE_AUTH0_CLIENT_DOMAIN; let audience: string | undefined = import.meta.env.VITE_AUTH0_AUDIENCE;