Use backend branding assets for logo and favicon
This commit is contained in:
@@ -4,12 +4,11 @@ import { useEffect } from 'react'
|
||||
|
||||
export default function BrandingFavicon() {
|
||||
useEffect(() => {
|
||||
const href = '/branding-icon.svg'
|
||||
const href = '/api/branding/favicon.ico'
|
||||
let link = document.querySelector("link[rel='icon']") as HTMLLinkElement | null
|
||||
if (!link) {
|
||||
link = document.createElement('link')
|
||||
link.rel = 'icon'
|
||||
link.type = 'image/svg+xml'
|
||||
document.head.appendChild(link)
|
||||
}
|
||||
link.href = href
|
||||
|
||||
Reference in New Issue
Block a user