From 159e3a0035024b16ed48a78b14782b62de67469f Mon Sep 17 00:00:00 2001 From: Dessalines Date: Thu, 25 Mar 2021 11:58:29 -0400 Subject: [PATCH] Fixing custom favicons. Fixes #220 --- src/server/index.tsx | 4 ---- src/shared/components/app.tsx | 11 +++++++++-- src/shared/utils.ts | 4 ++-- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/server/index.tsx b/src/server/index.tsx index 0dcd164..1382889 100644 --- a/src/server/index.tsx +++ b/src/server/index.tsx @@ -133,10 +133,6 @@ server.get("/*", async (req, res) => { - - - - diff --git a/src/shared/components/app.tsx b/src/shared/components/app.tsx index 262e4b5..6012d31 100644 --- a/src/shared/components/app.tsx +++ b/src/shared/components/app.tsx @@ -11,6 +11,7 @@ import { Theme } from "./theme"; import { Symbols } from "./symbols"; import { GetSiteResponse } from "lemmy-js-client"; import "./styles.scss"; +import { favIconPngUrl, favIconUrl } from "shared/utils"; export interface AppProps { siteRes: GetSiteResponse; @@ -33,9 +34,15 @@ export class App extends Component { + )} diff --git a/src/shared/utils.ts b/src/shared/utils.ts index 363f810..3049a03 100644 --- a/src/shared/utils.ts +++ b/src/shared/utils.ts @@ -72,8 +72,8 @@ import { i18n } from "./i18next"; export const wsClient = new LemmyWebsocket(); -export const favIconUrl = "/static/assets/favicon.svg"; -export const favIconPngUrl = "/static/assets/apple-touch-icon.png"; +export const favIconUrl = "/static/assets/icons/favicon.svg"; +export const favIconPngUrl = "/static/assets/icons/apple-touch-icon.png"; // TODO // export const defaultFavIcon = `${window.location.protocol}//${window.location.host}${favIconPngUrl}`; export const repoUrl = "https://github.com/LemmyNet"; -- 2.44.1