mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 12:47:13 +01:00
Made FAVICON_URL a runtime variable. Closes #3412
This commit is contained in:
parent
6e6c1df858
commit
b6862de2be
2 changed files with 1 additions and 3 deletions
|
|
@ -13,7 +13,7 @@ export function Favicon({ domain, ...props }) {
|
|||
return null;
|
||||
}
|
||||
|
||||
const url = config?.faviconURL || process.env.faviconURL || FAVICON_URL;
|
||||
const url = config?.faviconURL || FAVICON_URL;
|
||||
const hostName = domain ? getHostName(domain) : null;
|
||||
const domainName = GROUPED_DOMAINS[hostName]?.domain || hostName;
|
||||
const src = hostName ? url.replace(/\{\{\s*domain\s*}}/, domainName) : null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue