From: SleeplessOne1917 Date: Thu, 22 Jun 2023 01:04:28 +0000 (+0000) Subject: (Hopefully) fix webmanifest different origin issue (#1457) X-Git-Url: http://these/git/readmes/static/%24%7Bsubmission.url%7D?a=commitdiff_plain;h=3664b0600b3a196209248ff7c5898a78ee4c0795;p=lemmy-ui.git (Hopefully) fix webmanifest different origin issue (#1457) Co-authored-by: Dessalines --- diff --git a/src/server/index.tsx b/src/server/index.tsx index 144b596..b65506b 100644 --- a/src/server/index.tsx +++ b/src/server/index.tsx @@ -25,7 +25,7 @@ if (!process.env["LEMMY_UI_DISABLE_CSP"] && !process.env["LEMMY_UI_DEBUG"]) { server.get("/robots.txt", RobotsHandler); server.get("/service-worker.js", ServiceWorkerHandler); -server.get("/manifest", ManifestHandler); +server.get("/manifest.webmanifest", ManifestHandler); server.get("/css/themes/:name", ThemeHandler); server.get("/css/themelist", ThemesListHandler); server.get("/*", CatchAllHandler); diff --git a/src/server/utils/create-ssr-html.tsx b/src/server/utils/create-ssr-html.tsx index 569d83a..ae766b3 100644 --- a/src/server/utils/create-ssr-html.tsx +++ b/src/server/utils/create-ssr-html.tsx @@ -77,7 +77,7 @@ export async function createSsrHtml( /> - +