Skip to content

Commit

Permalink
Base URL for webmanifest injection
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-robert committed Apr 29, 2024
1 parent 7805926 commit 5233dff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -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) {
Expand Down

0 comments on commit 5233dff

Please sign in to comment.