Skip to content

Commit

Permalink
Merge pull request #2052 from ajnart/1676-custom-favicon-does-not-red…
Browse files Browse the repository at this point in the history
…nder
  • Loading branch information
ajnart authored May 16, 2024
2 parents 042a381 + 84f57bb commit 2bf4231
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"prettier:check": "prettier --check \"**/*.{ts,tsx}\"",
"prettier:write": "prettier --write \"**/*.{ts,tsx}\"",
"test": "SKIP_ENV_VALIDATION=1 vitest",
"test:docker": "yarn run turbo build && yarn test:run && docker build . -t homarr:local-dev && docker run -p 7575:7575 --name homarr-dev homarr:local-dev",
"test:ui": "SKIP_ENV_VALIDATION=1 vitest --ui",
"test:run": "SKIP_ENV_VALIDATION=1 vitest run",
"test:coverage": "SKIP_ENV_VALIDATION=1 vitest run --coverage",
Expand Down Expand Up @@ -241,4 +242,4 @@
]
}
}
}
}
5 changes: 2 additions & 3 deletions src/components/layout/Meta/BoardHeadOverride.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Head from 'next/head';
import React from 'react';
import { useConfigContext } from '~/config/provider';
import { firstUpperCase } from '~/tools/shared/strings';

Expand All @@ -19,9 +18,9 @@ export const BoardHeadOverride = () => {

{faviconUrl && faviconUrl.length > 0 && (
<>
<link rel="shortcut icon" href={faviconUrl} />
<link key="favicon" rel="shortcut icon" href={faviconUrl} />

<link rel="apple-touch-icon" href={faviconUrl} />
<link key="favicon-apple" rel="apple-touch-icon" href={faviconUrl} />
</>
)}
</Head>
Expand Down
4 changes: 2 additions & 2 deletions src/components/layout/Meta/CommonHead.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ 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" />

{/* configure apple splash screen & touch icon */}
<link rel="apple-touch-icon" href="/imgs/favicon/favicon.svg" />
<link key="favicon-apple" rel="apple-touch-icon" href="/imgs/favicon/favicon.svg" />
<meta name="apple-mobile-web-app-title" content="Homarr" />

<meta name="apple-mobile-web-app-capable" content="yes" />
Expand Down

0 comments on commit 2bf4231

Please sign in to comment.