Skip to content

Commit

Permalink
Merge pull request #8 from hft-app/ljans
Browse files Browse the repository at this point in the history
Await caching on installation
  • Loading branch information
ljans committed Mar 13, 2024
2 parents 0e9c1e5 + 9123dc4 commit c6f4fd8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/pwa.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* pwa.js ServiceWorker wrapper v1.7
* pwa.js ServiceWorker wrapper v1.8
* Licensed under the MIT license
* Copyright (c) 2023 Lukas Jans
* Copyright (c) 2024 Lukas Jans
* https://github.com/ljans/pwa
*/
class PWA {
Expand All @@ -25,7 +25,7 @@ class PWA {
// Cache resources (an exception causes the promise to reject)
if(this.config.cachedFiles) {
const cache = await caches.open(this.config.cacheVersion);
cache.addAll(this.config.cachedFiles);
await cache.addAll(this.config.cachedFiles);
}
}

Expand Down

0 comments on commit c6f4fd8

Please sign in to comment.