Skip to content

Commit

Permalink
Aaaa
Browse files Browse the repository at this point in the history
  • Loading branch information
Daltz333 committed Feb 3, 2022
1 parent c89fb8a commit 5e5b795
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion source/_extensions/pwa_service_files/sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ self.addEventListener('install', function(e) {
caches.open('frc-docs').then(function(cache) {
fetch('_static/cache.json')
.then(response => response.json().then(data => {
cache.addAll(data);
/*for (const i of data) {
cache.addAll()
}*/
cache.addAll(data).catch(error => {
console.error(error)
})
console.log(cache.keys());
}))
.catch(error => {
Expand Down

0 comments on commit 5e5b795

Please sign in to comment.