Add key for custom favicon

This commit is contained in:
ajnart
2024-05-15 21:33:25 +02:00
parent 042a381b66
commit 051f439434
2 changed files with 2 additions and 3 deletions

View File

@@ -1,5 +1,4 @@
import Head from 'next/head';
import React from 'react';
import { useConfigContext } from '~/config/provider';
import { firstUpperCase } from '~/tools/shared/strings';
@@ -15,7 +14,7 @@ export const BoardHeadOverride = () => {
return (
<Head>
<title>{title}</title>
<meta name="apple-mobile-web-app-title" content={title} />
<meta key="favicon" name="apple-mobile-web-app-title" content={title} />
{faviconUrl && faviconUrl.length > 0 && (
<>

View File

@@ -7,7 +7,7 @@ export const CommonHead = () => {
return (
<Head>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<link rel="shortcut icon" href="/imgs/favicon/favicon.svg" />
<link key="favicon" rel="shortcut icon" href="/imgs/favicon/favicon.svg" />
<link crossOrigin="use-credentials" rel="manifest" href="/site.webmanifest" />