linked manifest in the proper index file

This commit is contained in:
Carter 2025-02-27 13:25:15 -06:00
parent 2305c6e907
commit 900b11582b
2 changed files with 2 additions and 1 deletions

View file

@ -5,6 +5,7 @@
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
<link rel="manifest" href="/AdaptiveAgriculture/manifest.json" id="manifest-link" />
</head>
<body>
<div id="root"></div>

View file

@ -15,7 +15,7 @@ function App() {
const [palette, setPalette] = useState<Theme>(CreateTheme(getThemeType()));
const whiteLabel = getWhitelabel()
const manifestPath = whiteLabel.name.replace(/\s/g, "") + "/manifest.json"
const manifestPath = "/" + whiteLabel.name.replace(/\s/g, "") + "/manifest.json"
// const defaultPath = "/AdaptiveAgriculture/manifest.json";
const manifestDocument = document.getElementById('manifest-link') as HTMLLinkElement