From fd580c4c44a546aa18964a74396da55d87f423fe Mon Sep 17 00:00:00 2001 From: tech_e Date: Thu, 26 Sep 2024 15:00:56 -0600 Subject: [PATCH] Update service worker registration path and remove unused CSS file reference --- manifest.json | 2 +- public/sw.js | 3 +-- src/app-controller.js | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/manifest.json b/manifest.json index 4261f24..952aee3 100644 --- a/manifest.json +++ b/manifest.json @@ -16,7 +16,7 @@ "categories": ["games", "action"], "lang": "en-US", "dir": "ltr", - "scope": "/", + "scope": "./", "start_url": "./", "display": "standalone", "orientation": "landscape", diff --git a/public/sw.js b/public/sw.js index b9ff983..3401a12 100644 --- a/public/sw.js +++ b/public/sw.js @@ -6,8 +6,7 @@ version = '0.0.12'; const files = [ './', - './index.html', - './css/import-file.css' + './index.html' ]; const appNameId = appName + '-v' + version; diff --git a/src/app-controller.js b/src/app-controller.js index 722b3fa..31628ab 100644 --- a/src/app-controller.js +++ b/src/app-controller.js @@ -50,8 +50,8 @@ export class AppController } const sw = navigator.serviceWorker; - sw.register('/sw.js', { - scope: '/' + sw.register('./sw.js', { + scope: './' }).then((serviceWorker) => {