mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-29 09:06:13 +00:00
MINOR: fix the favicon not being updated (#19357)
* fix the favicon not being updated * minor condition check added (cherry picked from commit a28c30ec7f4561af450482a8d074eabef78fc616)
This commit is contained in:
parent
bde5b277f8
commit
2864e17976
@ -63,10 +63,12 @@ const App: FC = () => {
|
||||
? '/favicon.png'
|
||||
: applicationConfig?.customLogoConfig?.customFaviconUrlPath ??
|
||||
'/favicon.png';
|
||||
const link = document.querySelector('link[rel~="icon"]');
|
||||
const link = document.querySelectorAll('link[rel~="icon"]');
|
||||
|
||||
if (link) {
|
||||
link.setAttribute('href', faviconHref);
|
||||
if (!isEmpty(link)) {
|
||||
link.forEach((item) => {
|
||||
item.setAttribute('href', faviconHref);
|
||||
});
|
||||
}
|
||||
}, [applicationConfig]);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user