Skip to content

Commit

Permalink
sw tuning
Browse files Browse the repository at this point in the history
  • Loading branch information
vvsviridov committed Apr 18, 2021
1 parent 18b7701 commit c7a262d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions assets/serviceworker.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ self.addEventListener('activate', async event => {

self.addEventListener('fetch', event => {
const {request} = event
console.log(request.url)
event.respondWith(cacheFirst(request))
})

Expand Down
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"background_color": "rgba(0,0,0,0.1)",
"display": "standalone",
"orientation": "portrait",
"scope": "/assets/",
"start_url": "/assets/",
"scope": "/",
"start_url": "/",
"icons": [
{
"src": "/assets/icon-192x192.png",
Expand Down

0 comments on commit c7a262d

Please sign in to comment.