From 5233dff2fcaeb00a0ea79a13c23804c6616655d7 Mon Sep 17 00:00:00 2001 From: Robert Knight Date: Mon, 29 Apr 2024 11:57:09 +0100 Subject: [PATCH] Base URL for webmanifest injection --- src/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index 08d632885..4afd1f87e 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -9,6 +9,7 @@ import App from "./App"; import reportWebVitals from "./reportWebVitals"; import { registerSW } from "virtual:pwa-register"; import { flags } from "./flags"; +import { baseUrl } from "./base"; if (flags.pwa) { registerSW({ @@ -19,7 +20,7 @@ if (flags.pwa) { // Inject webmanifest. const link = document.createElement("link"); link.rel = "manifest"; - link.href = "/manifest.webmanifest"; + link.href = `${baseUrl}manifest.webmanifest`; document.head.appendChild(link); if (registration) {