Files
Magent/frontend/app/ui/BrandingFavicon.tsx
2026-01-23 20:07:17 +13:00

20 lines
445 B
TypeScript

'use client'
import { useEffect } from 'react'
export default function BrandingFavicon() {
useEffect(() => {
const href = '/branding-icon.svg'
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
}, [])
return null
}