Add key for custom favicon
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
import Head from 'next/head';
|
import Head from 'next/head';
|
||||||
import React from 'react';
|
|
||||||
import { useConfigContext } from '~/config/provider';
|
import { useConfigContext } from '~/config/provider';
|
||||||
import { firstUpperCase } from '~/tools/shared/strings';
|
import { firstUpperCase } from '~/tools/shared/strings';
|
||||||
|
|
||||||
@@ -15,7 +14,7 @@ export const BoardHeadOverride = () => {
|
|||||||
return (
|
return (
|
||||||
<Head>
|
<Head>
|
||||||
<title>{title}</title>
|
<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 && (
|
{faviconUrl && faviconUrl.length > 0 && (
|
||||||
<>
|
<>
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ export const CommonHead = () => {
|
|||||||
return (
|
return (
|
||||||
<Head>
|
<Head>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
|
<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" />
|
<link crossOrigin="use-credentials" rel="manifest" href="/site.webmanifest" />
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user