linked manifest in the proper index file
This commit is contained in:
parent
2305c6e907
commit
900b11582b
2 changed files with 2 additions and 1 deletions
|
|
@ -5,6 +5,7 @@
|
||||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>Vite + React + TS</title>
|
<title>Vite + React + TS</title>
|
||||||
|
<link rel="manifest" href="/AdaptiveAgriculture/manifest.json" id="manifest-link" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ function App() {
|
||||||
const [palette, setPalette] = useState<Theme>(CreateTheme(getThemeType()));
|
const [palette, setPalette] = useState<Theme>(CreateTheme(getThemeType()));
|
||||||
|
|
||||||
const whiteLabel = getWhitelabel()
|
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 defaultPath = "/AdaptiveAgriculture/manifest.json";
|
||||||
const manifestDocument = document.getElementById('manifest-link') as HTMLLinkElement
|
const manifestDocument = document.getElementById('manifest-link') as HTMLLinkElement
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue