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) => {