Skip to content

Commit

Permalink
Minor: Modify whitespace to make fetch ServiceWorker body easier to…
Browse files Browse the repository at this point in the history
… read
  • Loading branch information
D-Pow committed Sep 28, 2024
1 parent a47575f commit be33cbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ServiceWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ self.addEventListener('activate', function(event) {
});

self.addEventListener('fetch', event => {
event.respondWith(
caches.open(CACHE_NAME).then(function(cache) {
event.respondWith(caches.open(CACHE_NAME)
.then(function(cache) {
return cache.match(event.request).then(function(response) {
var url = event.request.url;
var fileRequested = url.split('/').pop();
Expand Down

0 comments on commit be33cbf

Please # to comment.