]> Untitled Git - lemmy-ui.git/commitdiff
(Hopefully) fix webmanifest different origin issue (#1457)
authorSleeplessOne1917 <abias1122@gmail.com>
Thu, 22 Jun 2023 01:04:28 +0000 (01:04 +0000)
committerGitHub <noreply@github.com>
Thu, 22 Jun 2023 01:04:28 +0000 (21:04 -0400)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
src/server/index.tsx
src/server/utils/create-ssr-html.tsx

index 144b596ec618f5effa7d2f7f4b4edf60b4309bd9..b65506b0e6c4a3709e9b7ccd2dfd12f173bfaea3 100644 (file)
@@ -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);
index 569d83acaaf3814b0569a129152ff9e299d39ed2..ae766b3a0e73294f6e019875ab6056575903a16e 100644 (file)
@@ -77,7 +77,7 @@ export async function createSsrHtml(
      />
   
     <!-- Web app manifest -->
-    <link rel="manifest" href="/manifest" />
+    <link rel="manifest" href="/manifest.webmanifest" />
     <link rel="apple-touch-icon" href=${appleTouchIcon} />
     <link rel="apple-touch-startup-image" href=${appleTouchIcon} />