Skip to content

Commit

Permalink
fix array
Browse files Browse the repository at this point in the history
  • Loading branch information
secondl1ght committed Jun 2, 2023
1 parent bc776c0 commit 7abe3dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ self.addEventListener('install', (event) => {
// Create a new cache and add offline file to it
async function addFileToCache() {
const cache = await caches.open(CACHE);
await cache.addAll('/offline.html', '/images/logo.svg', '/icons/socials/spritesheet.svg');
await cache.addAll(['/offline.html', '/images/logo.svg', '/icons/socials/spritesheet.svg']);
}

event.waitUntil(addFileToCache());
Expand Down

0 comments on commit 7abe3dc

Please sign in to comment.