From 816c903681ab05ef67b8bf53a681b243010c1bca Mon Sep 17 00:00:00 2001 From: Omar Najjar Date: Sat, 6 Jul 2024 22:01:42 +1000 Subject: [PATCH] x --- manifest.json | 27 ++++++++++++++------------- service-worker.js | 7 ++----- 2 files changed, 16 insertions(+), 18 deletions(-) diff --git a/manifest.json b/manifest.json index 5e0de2c..49eadcd 100644 --- a/manifest.json +++ b/manifest.json @@ -1,21 +1,22 @@ { "name": "Instinct App", "short_name": "Instinct", - "start_url": "/", + "description": "A description of your app", + "start_url": "./index.html", "display": "standalone", "background_color": "#000000", "theme_color": "#000000", - "description": "An instinct-driven app", "icons": [ - { - "src": "icon.png", - "sizes": "192x192", - "type": "image/png" - }, - { - "src": "icon.png", - "sizes": "512x512", - "type": "image/png" - } + { + "src": "icon-192x192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "icon-512x512.png", + "sizes": "512x512", + "type": "image/png" + } ] -} + } + \ No newline at end of file diff --git a/service-worker.js b/service-worker.js index 6fe304f..aa5e9be 100644 --- a/service-worker.js +++ b/service-worker.js @@ -3,11 +3,8 @@ self.addEventListener('install', (event) => { caches.open('instinct-app-cache').then((cache) => { return cache.addAll([ '/', - '/index.html', - '/styles.css', - '/script.js', - '/icon.png', - '/manifest.json', + 'index.html', + 'manifest.json', ]); }) );