Skip to content

Commit

Permalink
activate sw
Browse files Browse the repository at this point in the history
  • Loading branch information
nyakotey committed May 24, 2022
1 parent 899b176 commit 0a80757
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ addWhatappEventHandler();
}

// service worker
/*

if('serviceWorker' in navigator){
window.addEventListener('load', () => {
navigator.serviceWorker.register('/sw.js')
Expand All @@ -307,5 +307,5 @@ if('serviceWorker' in navigator){
.catch((err)=> console.log('Service worker not registered', err));
});

}*/
}

4 changes: 2 additions & 2 deletions sw.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// #5

const staticCacheName = 'site-static-v51';
const dynamicCache = 'site-dynamic-v51';
const staticCacheName = 'site-static-v52';
const dynamicCache = 'site-dynamic-v52';

const dynamicCacheSize = 30;

Expand Down

0 comments on commit 0a80757

Please sign in to comment.