Skip to content

Commit

Permalink
Update service worker registration path and remove unused CSS file re…
Browse files Browse the repository at this point in the history
…ference
  • Loading branch information
tech_e committed Sep 26, 2024
1 parent 8cfc08a commit fd580c4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"categories": ["games", "action"],
"lang": "en-US",
"dir": "ltr",
"scope": "/",
"scope": "./",
"start_url": "./",
"display": "standalone",
"orientation": "landscape",
Expand Down
3 changes: 1 addition & 2 deletions public/sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ version = '0.0.12';
const files =
[
'./',
'./index.html',
'./css/import-file.css'
'./index.html'
];

const appNameId = appName + '-v' + version;
Expand Down
4 changes: 2 additions & 2 deletions src/app-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ export class AppController
}

const sw = navigator.serviceWorker;
sw.register('/sw.js', {
scope: '/'
sw.register('./sw.js', {
scope: './'
}).then((serviceWorker) =>
{

Expand Down

0 comments on commit fd580c4

Please sign in to comment.