diff options
-rw-r--r-- | src/service-worker.ts | 5 | ||||
-rw-r--r-- | static/manifest.json | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/service-worker.ts b/src/service-worker.ts index b721b18..0af4ccb 100644 --- a/src/service-worker.ts +++ b/src/service-worker.ts @@ -55,12 +55,11 @@ self.addEventListener('fetch', <EventType extends FetchEvent>(event: EventType) // for pages, you might want to serve a shell `service-worker-index.html` file, // which Sapper has generated for you. It's not right for every // app, but if it's right for yours then uncomment this section - /* if (url.origin === self.origin && routes.find(route => route.pattern.test(url.pathname))) { - event.respondWith(caches.match('/service-worker-index.html')); + event.respondWith(caches.match('/Aurora-data/service-worker-index.html')); return; } - */ + if (event.request.cache === 'only-if-cached') return; diff --git a/static/manifest.json b/static/manifest.json index 9378523..be2d463 100644 --- a/static/manifest.json +++ b/static/manifest.json @@ -4,7 +4,7 @@ "name": "Aurora Data", "short_name": "aurora data", "display": "standalone", - "start_url": "/", + "start_url": "/Aurora-data/", "orientation": "portrait", "icons": [ { |