Skip to content

Commit

Permalink
Update serviceworker.js
Browse files Browse the repository at this point in the history
  • Loading branch information
faris-zak committed Aug 29, 2024
1 parent 2b3c74d commit 9868878
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions serviceworker.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ self.addEventListener('install', (event) => {
'/assets/js/sdScript.js',
'/assets/js/summScript.js',
'/assets/js/touScript.js',
'/serviceworker.js',

'/manifest.json',

'/assets/css/aboStyle.css',
'/assets/css/aeStyle.css',
Expand Down Expand Up @@ -57,11 +60,11 @@ self.addEventListener('fetch', (event) => {
event.respondWith(
caches.match(event.request).then((response) => {
return response || fetch(event.request).catch(() => {
returnnewResponse('Network error occurred', {
return new Response('Network error occurred', {
status: 408,
statusText: 'Network error',
});
});
})
);
});
});

0 comments on commit 9868878

Please sign in to comment.