Manifest update for installability

- Scope needs to be within start path
This commit is contained in:
James Barnsley
2023-05-08 19:27:39 +12:00
parent 5ac3c6254a
commit a8d622ffaa
2 changed files with 3 additions and 2 deletions

View File

@ -116,7 +116,7 @@
</body>
<script type="text/javascript">
if ('serviceWorker' in navigator){
navigator.serviceWorker.register('service-worker.js')
navigator.serviceWorker.register('<%= baseHref %>service-worker.js')
.then(function(registration){
console.log('Service worker registered');
}).catch(function(error){

View File

@ -1,4 +1,6 @@
{
"start_url": ".",
"scope": ".",
"manifest_version": "3.55",
"short_name": "Iris",
"name": "Iris",
@ -24,7 +26,6 @@
"sizes": "512x512"
}
],
"start_url": "/",
"background_color": "#08d58f",
"theme_color": "#181818",
"display": "standalone",