diff --git a/web/src/api/Config.ts b/web/src/api/Config.ts index bbb578aba..43c604ec2 100644 --- a/web/src/api/Config.ts +++ b/web/src/api/Config.ts @@ -25,7 +25,13 @@ export function config(): Promise { let globalTenantPromise: Promise; export function tenant(): Promise { if (!globalTenantPromise) { - globalTenantPromise = new CoreApi(DEFAULT_CONFIG).coreTenantsCurrentRetrieve(); + globalTenantPromise = new CoreApi(DEFAULT_CONFIG).coreTenantsCurrentRetrieve().then(tenant => { + const relIcon = document.head.querySelector("link[rel=icon]"); + if (relIcon) { + relIcon.href = tenant.brandingLogo; + } + return tenant; + }); } return globalTenantPromise; }